10 lines
235 B
Kotlin
Vendored
10 lines
235 B
Kotlin
Vendored
class Command() {}
|
|
|
|
fun parse(cmd: String): Command? { return null }
|
|
|
|
fun Any.equals(other : Any?) : Boolean = this === other
|
|
|
|
fun main() {
|
|
val command = parse("")
|
|
if (command == null) 1 // error on this line, but must be OK
|
|
} |