Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/kt36264.kt
T
2021-05-25 13:28:29 +03:00

20 lines
258 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
interface A
class B : A
val String.ext: A
get() = TODO()
class Cls {
fun take(arg: B) {}
fun test(s: String) {
if (s.ext is B)
take(s.ext)
}
}
fun take(arg: Any) {}