954204da82
Report warning on extensions shadowed by members.
10 lines
336 B
Kotlin
Vendored
10 lines
336 B
Kotlin
Vendored
class Command() {}
|
|
|
|
fun parse(<!UNUSED_PARAMETER!>cmd<!>: String): Command? { return null }
|
|
|
|
fun Any.<!EXTENSION_SHADOWED_BY_MEMBER!>equals<!>(other : Any?) : Boolean = this === other
|
|
|
|
fun main(args: Array<String>) {
|
|
val command = parse("")
|
|
if (command == null) <!UNUSED_EXPRESSION!>1<!> // error on this line, but must be OK
|
|
} |