Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/stopResolutionOnAmbiguity.fir.kt
T
Denis Zharkov 47ecaa5b06 FIR: Fix scope intersection types
Otherwise overload resolution ambiguity is reported in the test
2020-01-30 17:12:50 +03:00

21 lines
201 B
Kotlin
Vendored

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