Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/Jet69.kt
T

10 lines
317 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() {
val command = parse("")
if (command == null) <!UNUSED_EXPRESSION!>1<!> // error on this line, but must be OK
}