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

Summary: completion works wrongly for "using" declaration of a function
Product: cnd Reporter: Alexey Vladykin <alexey_vladykin>
Component: Code CompletionAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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;