Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.0.0-alpha-2
-
None
Description
@groovy.transform.CompileStatic def foo() { def a = 0 a ?= 1 println a // 1 def b = 0 b ?= "hello" println b // expected: "hello", actual: "GroovyCastException: Cannot cast 'String' to 'int'" } foo()
Attachments
Issue Links
- links to