Community
Participate
Working Groups
Build ID: I20081211-1908 Steps To Reproduce: Type the javascript code.... var myObject = { val1: "test1", val2: "test2" }; alert(myObject.val1); var myObject has the "never read" warning on it. More information:
Created attachment 131982 [details] Updates in SingleNameReference
In this case we need to check for the case where the local var is a Type and a Local binding.
Applied, thanks, Chris.
*** Bug 244323 has been marked as a duplicate of this bug. ***
*** Bug 265818 has been marked as a duplicate of this bug. ***
It looks like this bug needs to be reopened since I am having the same problem: var func = function(){ var self = this; self.r = ''; }; func(); I get the "The local variable self is never read" warning about "self", but if I rename the value to anything other than "self" the problem dissappears. I am using: Version: Indigo Service Release 1 Build id: 20110916-0149