[FIR] KT-55503: Fix current behavior
This commit is contained in:
committed by
Space Team
parent
8b286577c7
commit
906b16b41e
@@ -0,0 +1,33 @@
|
||||
// FIR_IDENTICAL
|
||||
// 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()) {
|
||||
// K1 resolves to A::B.check
|
||||
// K2 - to ::A.check
|
||||
forEach()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user