Files
kotlin-fork/idea/testData/checker/regression/Jet69.kt
T
Dmitry Petrov 954204da82 KT-1560
Report warning on extensions shadowed by members.
2017-01-16 17:25:13 +03:00

11 lines
312 B
Kotlin
Vendored

class Command() {}
fun parse(<warning>cmd</warning>: String): Command? { return null }
fun Any.<warning>equals</warning>(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
}