Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.6.1.M1
-
Fix Version/s: 2.8.0.Release
-
Component/s: Inferencing Engine
-
Labels:None
-
Number of attachments :
Description
Consider the following interface:
package test; public interface I { String getProp(); }
and the following Groovy class:
package test class A { String myMethod(I owner) { doNothing { return owner.prop } } Object doNothing(Closure<Object> c) { return c.call() } }
Look at the body of myMethod. The prop property of owner is underlined because at that point owner is not recognized as the "owner" method parameter of myMethod: the parser seems to think it's the owner of the closure, although the "mark occurences" and the "go to declaration" features work correctly.