5b62558798
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
46 lines
1.2 KiB
Kotlin
Vendored
46 lines
1.2 KiB
Kotlin
Vendored
package foo
|
|
|
|
/*p:bar(C)*/import bar.C
|
|
import baz.*
|
|
|
|
/*p:foo*/fun usages() {
|
|
val c = /*p:bar*/C()
|
|
|
|
/*p:bar.C(field) p:kotlin(Int)*/c.field
|
|
/*p:bar.C(field) p:kotlin(Int)*/c.field = 2
|
|
/*p:bar.C(func) p:kotlin(Unit)*/c.func()
|
|
/*p:bar(B) p:bar.C(B) p:bar.C.B(B)*/c.B()
|
|
|
|
/*p:bar p:baz p:foo*/C.sfield
|
|
/*p:bar p:baz p:foo*/C.sfield = "new"
|
|
/*p:bar p:baz p:foo p:kotlin(Unit)*/C.sfunc()
|
|
/*p:bar p:bar(S) p:baz p:foo*/C.S()
|
|
|
|
// inherited from I
|
|
/*p:bar.C(ifunc) p:kotlin(Unit)*/c.ifunc()
|
|
/*p:bar p:baz p:foo*/C.isfield
|
|
// expected error: Unresolved reference: IS
|
|
/*p:bar p:bar(IS) p:baz p:baz(IS) p:foo p:foo(IS)*/C.IS()
|
|
|
|
|
|
val i: /*p:bar p:baz p:foo*/I = c
|
|
/*p:foo.I(ifunc) p:kotlin(Unit)*/i.ifunc()
|
|
|
|
/*p:bar p:baz p:foo*/I.isfield
|
|
/*p:bar p:baz p:foo p:foo(IS)*/I.IS()
|
|
|
|
/*p:bar p:baz p:foo*/E.F
|
|
/*p:bar p:baz p:baz.E(field) p:foo p:kotlin(Int)*/E.F.field
|
|
/*p:bar p:baz p:baz.E(func) p:foo p:kotlin(Unit)*/E.S.func()
|
|
}
|
|
|
|
fun classifiers(
|
|
c: /*p:bar p:baz p:foo*/C,
|
|
b: /*p:bar p:baz p:foo*/C.B,
|
|
s: /*p:bar p:baz p:foo*/C.S,
|
|
cis: /*p:bar p:baz p:foo*/C.IS,
|
|
i: /*p:bar p:baz p:foo*/I,
|
|
iis: /*p:bar p:baz p:foo*/I.IS,
|
|
e: /*p:bar p:baz p:foo*/E
|
|
) {}
|