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 249069 - @type'd arguments followed by an equals sign should be treated as optional
Summary: @type'd arguments followed by an equals sign should be treated as optional
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-02 14:23 UTC by brettryan
Modified: 2015-01-15 14:47 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2014-12-02 14:23:16 UTC
JSDoc provides two ways of specifying an optional argument: In the following sample both are valid optional arguments.

  /**
   * Make a select widget.
   *
   * @param   {Widget} [widget1]
   *          Widget 1
   * @param   {Widget=} widget2
   *          Widget 2
   */
  foo(widget1, widget2) {
  }

NetBeans treats the first as it should, but the second for `widget2' treats the type as `Widget='.
Comment 1 Petr Pisl 2015-01-15 14:47:15 UTC
Implemented in the web-main. Thanks for reporting.