Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.2.0
-
None
-
None
Description
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.