1bbcae5ed2
We cannot call lazy resolve to STATUS phase from scopes as scopes may be accessed on a STATUS phase or earlier ^KT-54890 ^KTIJ-23587 fixed
36 lines
452 B
Kotlin
Vendored
36 lines
452 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// MODULE: m1
|
|
// FILE: a.kt
|
|
package p
|
|
|
|
public interface B<T> {
|
|
public fun foo(a: T)
|
|
}
|
|
|
|
// MODULE: m2(m1)
|
|
// FILE: b.kt
|
|
package p
|
|
|
|
public interface C : B<String> {
|
|
override fun foo(a: String)
|
|
|
|
}
|
|
|
|
// MODULE: m3
|
|
// FILE: b.kt
|
|
package p
|
|
|
|
public interface B {
|
|
public fun foo(a: String)
|
|
}
|
|
|
|
// MODULE: m4(m3, m2)
|
|
// FILE: c.kt
|
|
import p.*
|
|
|
|
fun test(b: B?) {
|
|
if (b is C) {
|
|
b<!UNNECESSARY_SAFE_CALL!>?.<!>foo("")
|
|
}
|
|
}
|