Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 783 by google....@ben.coman.com.au: 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