5b9c35de2e
#KT-61129 Fixed
32 lines
446 B
Kotlin
Vendored
32 lines
446 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// FIR_DUMP
|
|
|
|
// FILE: First.kt
|
|
|
|
package sample.pack
|
|
|
|
@Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
|
@kotlin.internal.HidesMembers
|
|
fun A.forEach() = "::A.forEach"
|
|
|
|
class A {
|
|
fun B.forEach() = "A::B.forEach"
|
|
}
|
|
|
|
class B
|
|
|
|
// FILE: Second.kt
|
|
|
|
package sample
|
|
|
|
import sample.pack.*
|
|
|
|
fun box() {
|
|
return with(A()) {
|
|
with(B()) {
|
|
// Both K1 & K2 resolve to A::B.check
|
|
forEach()
|
|
}
|
|
}
|
|
}
|