Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
@groovy.transform.Field String x = "X" @groovy.transform.CompileStatic public List<String> getStrings() { x ? [x] : Collections.emptyList() // fail // return x ? [x] : Collections.emptyList() // succeed with `return` } getStrings()
SEE GROOVY-7753
Attachments
Issue Links
- links to