Issue 783 in moose-technology: hidden 'Name already defined' tempvar & ivar clash

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 783 in moose-technology: hidden 'Name already defined' tempvar & ivar clash

moose-technology
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 783 by [hidden email]: hidden 'Name already defined'  
tempvar & ivar clash
http://code.google.com/p/moose-technology/issues/detail?id=783

Moose 4.6 has some hidden clashes between instance variables and method  
temporary variables.

In order to observe the operation of #forNode:do: in Mondrian, I went to  
add only 'self halt' to  
MOViewRendererTest>>testEdgesAndInteractiveExpansion.
When I tried to <Accept> this, it complained temporary variable 'view'  
was 'Name already defined' and indeed MOViewRendererTest does have a  
clashing instance variable 'view' which prevents me from saving my change.

Similar has happened to me previously a few times, so I thought I would  
flag it in case anyone was curious to determine how this got past the  
compiler into the system, and also might be able to do some automated sweep  
of the code to detect any similar occurances.

cheers, Ben

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Issue 783 in moose-technology: hidden 'Name already defined' tempvar & ivar clash

moose-technology
Updates:
        Status: Fixed

Comment #1 on issue 783 by [hidden email]: hidden 'Name already  
defined' tempvar & ivar clash
http://code.google.com/p/moose-technology/issues/detail?id=783

Version 2.149 of Mondrian : Removed the hidden view field in  
MOViewRendererTest

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev