-
Type:
Bug
-
Status: Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.2.0
-
Fix Version/s: 2.2.1
-
Component/s: None
-
Labels:None
The following test case demonstrates the problem:
Class foo(Runnable r) { // please do not remove wrapping inside a closure // because that's precisely what this test is supposed to check! { -> bar(r) }() } Class bar(Runnable r) { r.class } assert Closure.isAssignableFrom(foo { 'Hello' })
The assertion fails, with the class being a Proxy, which implies coercion to Runnable, which is implemented by Closure was involved.