K2 IC: fix member lookup recording

The previous code recorded only class name, instead of fqname,
as a scope of lookup.

#KT-65943 fixed
#KTIJ-24828 fixed
related to #KT-56197
This commit is contained in:
Ilya Chernikov
2024-02-21 16:33:18 +01:00
committed by Space Team
parent f38dc3999c
commit 5b62558798
35 changed files with 269 additions and 208 deletions
@@ -0,0 +1,6 @@
package foo
/*p:foo(A)*/open class A {
/*p:kotlin.jvm(JvmName)*/@/*p:foo*/JvmName("g")
fun f() {}
}
@@ -0,0 +1,6 @@
package foo
/*p:foo(A)*/open class A {
/*p:kotlin.jvm(JvmName)*/@/*p:foo*/JvmName("h")
fun f() {}
}
@@ -0,0 +1,3 @@
package foo
/*p:foo*/class AChild : /*p:foo*/A()
@@ -0,0 +1,11 @@
==== INITIAL BUILD ====
Compiling files:
src/A.kt
src/AChild.kt
src/useAChild.kt
Exit code: OK
==== STEP 1 ====
Compiling files:
src/A.kt
Exit code: OK
@@ -0,0 +1,5 @@
package foo
/*p:foo*/fun useAChild(a: /*p:foo*/AChild) {
/*p:foo.A(f) p:foo.AChild(f) p:kotlin(Unit)*/a.f()
}