Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
None
Description
The following code throws an NPE at runtime if compiled using @CompileStatic:
class A { int foo() { 123 } } A a = null def bar = a?.foo() == 123 // will evaluate to false assert bar == false