Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.0-rc-1
-
None
Description
May or may not be a bug, to be decided.
Also see http://jira.codehaus.org/browse/GROOVY-6802
To reproduce:
import groovy.transform.CompileStatic
@CompileStatic class Foo { def static main(String[] args) { String b = ["foo"] assert b == "[foo]" } }
Assumption: This should succeed, List probably should be coerced into String via toString() as is done without @CompileStatic.
Attachments
Issue Links
- is related to
-
GROOVY-6802 CompileStatic: ListAssignment takes precedence over Coercion when statically compiling
-
- Closed
-