Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.3
-
None
Description
in operator is null safe in dynamic compilation mode (I guess that's because of the internal NullObject).
Similar code throws an exception in static compilation mode.
example:
def isCaseNull(a, b) { a in b } @groovy.transform.CompileStatic def isCaseNullCS(a, b) { a in b } isCaseNull(1, null) isCaseNullCS(1, null)
Attachments
Issue Links
- relates to
-
GROOVY-7473 inefficient code generation
- Closed