[FIR] Qualifier resolve

This commit is contained in:
simon.ogorodnik
2020-01-22 17:39:34 +03:00
parent 723ebb4f57
commit c29c140a9c
21 changed files with 238 additions and 175 deletions
@@ -10,6 +10,6 @@ class C {
typealias CA = C
val test1 = CA
val test2 = CA.Companion
val test2 = CA.<!UNRESOLVED_REFERENCE!>Companion<!>
val test3 = CA.x
val test4 = CA.Companion.x
val test4 = CA.<!UNRESOLVED_REFERENCE!>Companion<!>.<!UNRESOLVED_REFERENCE!>x<!>
@@ -34,8 +34,8 @@ val seeAlsoDerivedFoo: String = JDerived.foo()
// Referencing nested classes via type alias should be prohibited
// (in type position and in expression position)
val testNested1: JT.Nested = JT.<!UNRESOLVED_REFERENCE!>Nested<!>()
val testNested2: KT.Nested = KT.Nested()
val testNested3: IT.Nested = IT.Nested()
val testNested2: KT.Nested = KT.<!UNRESOLVED_REFERENCE!>Nested<!>()
val testNested3: IT.Nested = IT.<!UNRESOLVED_REFERENCE!>Nested<!>()
val testInner1: JT.Inner = JT.<!UNRESOLVED_REFERENCE!>Inner<!>()
val testInner2: KT.Inner = KT.<!UNRESOLVED_REFERENCE!>Inner<!>()
fun testNestedAsTypeArgument1(x: List<JT.Nested>) {}
@@ -53,7 +53,7 @@ fun foo(
test.ClassAlias::func
test.ClassSample.Nested::func
test.ClassAlias.Nested::func
<!UNRESOLVED_REFERENCE!>test.ClassAlias.<!UNRESOLVED_REFERENCE!>Nested<!>::func<!>
test.ObjectSample::Nested
test.ObjectAlias::Nested
@@ -71,5 +71,5 @@ fun foo(
test.EnumAlias::func
test.EnumSample.Nested::func
test.EnumAlias.Nested::func
<!UNRESOLVED_REFERENCE!>test.EnumAlias.<!UNRESOLVED_REFERENCE!>Nested<!>::func<!>
}