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.
Maybe should be ENHANCEMENT, not sure if this is planned/supposed to work /** * @return {Date} Some date */ function foo() { var a = new Date(); return a; } var e = foo(); e. Completion for "e." should offer items for Date object. I've tried it with/without the JSDoc, no difference Product Version: NetBeans IDE Dev (Build 201207191713) Java: 1.7.0_06-ea; Java HotSpot(TM) Client VM 23.2-b08 System: Linux version 3.0.0-21-generic-pae running on i386; UTF-8; en_US (nb)
It should be "@returns" (note the "s" at the end). But it does work for me in 7.2 with and without "s".
*** Bug 162305 has been marked as a duplicate of this bug. ***
Is there any update? This would really help with proper code completion.
*** Bug 222514 has been marked as a duplicate of this bug. ***
Sorry, I do not think that this is P3, moreover if this works in NB 7.2 (see comment #1, cannot verify myself) then it is likely a "regression". Thanks.
This case fixed in web-main. Now it works due to JS doc. http://hg.netbeans.org/web-main/rev/b429934924ce
I have created new issue #222601 to improve the code completion without a documentation.
Thanks a lot, type is resolved correctly. Code completion offers methods/properties correctly and Navigator shows correct variable type. Product Version: NetBeans IDE Dev (Build web-main-9317-on-20121123) Java: 1.7.0_10-ea; Java HotSpot(TM) Client VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b16 System: Linux version 3.2.0-33-generic-pae running on i386; UTF-8; en_US (nb)
Integrated into 'main-golden', will be available in build *201211250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b429934924ce User: Petr Pisl <ppisl@netbeans.org> Log: #215764 - Variable type returned by function not recognized