Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/stopResolutionOnAmbiguity.kt
T
2015-05-12 19:43:17 +02:00

21 lines
237 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.<!OVERLOAD_RESOLUTION_AMBIGUITY!>bar<!>();
}
}
}
fun Any?.bar() {}