47ecaa5b06
Otherwise overload resolution ambiguity is reported in the test
17 lines
155 B
Kotlin
Vendored
17 lines
155 B
Kotlin
Vendored
interface B {
|
|
fun bar() {}
|
|
}
|
|
|
|
class C() {
|
|
fun bar() {
|
|
}
|
|
}
|
|
|
|
fun test(a : Any?) {
|
|
if (a is B) {
|
|
if (a is C) {
|
|
a.bar();
|
|
}
|
|
}
|
|
}
|