Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.6
-
None
Description
@CompileStatic class Test { public <T extends Runnable> T fails(Class<T> type, def x) { return type.cast(x) } public <T extends Runnable> T passes(Class<T> type, def x) { return type.cast(x) as T } }