Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.2
-
None
Description
The following code fails compilation:
class Helper<V> { public Helper(Closure<V> cl) {} } static <C> void extensionMethod(Closure<C> cl) { new Helper<C>(cl) } extensionMethod { 'string' }
The type checker incorrectly tries to match the placeholder name, even if it's not defined at the same level. It's a regression, this used to compile in 2.2.1.