Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.7, 2.2.0-beta-2, 2.3.0, 2.4.0-rc-1
-
None
Description
class X {} @groovy.transform.CompileStatic def foo() { new X("f") } println foo()
This code compiles and runs in static compilation, even though the type checker should have complained. In normal Groovy this fails at runtime, as does if the type checker only is used.