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 253676 - Incorrect "Unused" marker on function parameter
Summary: Incorrect "Unused" marker on function parameter
Status: RESOLVED DUPLICATE of bug 246239
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-23 09:30 UTC by terje7601
Modified: 2015-07-28 13:47 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 terje7601 2015-07-23 09:30:58 UTC
In the following function, the "data" parameter is marked as Unused, even though it isn't:

function foo(data) {
  var data = data.substring(2);
  return data;
}

Product Version: NetBeans IDE Dev (Build 201507150001)
Updates: Updates available
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Roman Svitanic 2015-07-28 13:47:21 UTC
This seems to be a duplicate of issue #246239.

*** This bug has been marked as a duplicate of bug 246239 ***