Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.16, 3.0.0-alpha-4, 2.5.6
-
None
Description
Expecting type checking error for the following:
@groovy.transform.TypeChecked def m(def obj) { def isA = (obj instanceof String && obj.equalsIgnoreCase('a')) obj.toLowerCase() // should be STC error; if above line is commented out, error shows }
Same for @CompileStatic.
Attachments
Issue Links
- links to