47ecaa5b06
Otherwise overload resolution ambiguity is reported in the test
21 lines
256 B
Kotlin
Vendored
21 lines
256 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
interface A {
|
|
val foo: Any?
|
|
}
|
|
|
|
interface C: A {
|
|
override val foo: String
|
|
}
|
|
interface B: A {
|
|
override var foo: String?
|
|
}
|
|
|
|
fun test(a: A) {
|
|
if (a is B && a is C) {
|
|
a.foo = ""
|
|
a.foo = null
|
|
a.foo
|
|
}
|
|
}
|