Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/stopResolutionOnAmbiguity.kt
T
2021-07-13 10:35:01 +03:00

21 lines
251 B
Kotlin
Vendored

package c
interface B {
fun bar() {}
}
class C() {
fun bar() {
}
}
fun test(a : Any?) {
if (a is B) {
if (<!USELESS_IS_CHECK!>a is C<!>) {
<!DEBUG_INFO_SMARTCAST!>a<!>.bar();
}
}
}
fun Any?.bar() {}