Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.8
-
None
Description
class A {} class B {} @groovy.transform.CompileStatic def cs() { def var var = new A() def c = { var = new B() // Cannot cast object 'B@4e234c52' with class 'B' to class 'A' } c() var.toString() } assert cs() != null