Files
kotlin-fork/idea/testData/checker/regression/Jet69.kt
T
2012-11-12 19:54:22 +04:00

11 lines
274 B
Kotlin

class Command() {}
fun parse(<warning>cmd</warning>: String): Command? { return null }
fun Any.equals(other : Any?) : Boolean = this === other
fun main(args: Array<String>) {
val command = parse("")
if (command == null) 1 // error on this line, but must be OK
}