Files
kotlin-fork/idea/testData/checker/regression/Jet69.kt
T

11 lines
293 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) <warning>1</warning> // error on this line, but must be OK
}