This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137025 - completion works wrongly for "using" declaration of a function
Summary: completion works wrongly for "using" declaration of a function
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-11 17:03 UTC by Alexey Vladykin
Modified: 2013-05-07 11:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Vladykin 2008-06-11 17:03:28 UTC
Consider the following code fragment:

namespace ns {
    int func() {}
}
using ns::fu // invoke code completion here

After selecting "func()" in code completion dialog the last line becomes
using ns::func()
which is a syntax error. Completion should better insert semicolon instead of parentheses:
using ns::func;