Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.6
-
None
Description
class Test { @CompileStatic static void main(String... a) { println('a' in String) } }
From what I can understand, based on the lhs type, the compiler assumes that 'in' refers to String.contains(), while it actually refers to instanceof