47ecaa5b06
Otherwise overload resolution ambiguity is reported in the test
21 lines
201 B
Kotlin
Vendored
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() {}
|