[FIR] Fix type alias handling in qualifier position

This commit is contained in:
Mikhail Glukhikh
2020-01-21 18:46:57 +03:00
parent e644edfe84
commit 69ecbd93a9
8 changed files with 15 additions and 12 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
class A {
companion object {
val result = "OK"
@@ -8,5 +8,5 @@ class Relevant {
typealias Obsolete = Relevant
fun test1() = Obsolete
fun test2() = Obsolete.<!UNRESOLVED_REFERENCE!>value<!>
fun test2() = Obsolete.value
fun test3() = Obsolete.toString()
@@ -11,5 +11,5 @@ typealias CA = C
val test1 = CA
val test2 = CA.Companion
val test3 = CA.<!UNRESOLVED_REFERENCE!>x<!>
val test3 = CA.x
val test4 = CA.Companion.x
@@ -21,5 +21,5 @@ typealias TestGCWC<T> = GenericClassWithCompanion<T>
val test25: GenericClassWithCompanion.Companion = TestGCWC
val test26 = TestGCWC
val test27: String = TestGCWC.<!UNRESOLVED_REFERENCE!>ok<!>
val test28: String = TestGCWC.<!UNRESOLVED_REFERENCE!>foo<!>()
val test27: String = TestGCWC.ok
val test28: String = TestGCWC.foo()
@@ -6,5 +6,5 @@ class C<T1, T2> {
typealias C2<T> = C<T, T>
val test1: String = C2<String>.<!UNRESOLVED_REFERENCE!>OK<!>
val test2: String = C2.<!UNRESOLVED_REFERENCE!>OK<!>
val test1: String = C2<String>.OK
val test2: String = C2.OK
@@ -28,5 +28,5 @@ typealias TestCWC = ClassWithCompanion
val test35: ClassWithCompanion.Companion = TestCWC
val test36 = TestCWC
val test37: String = TestCWC.<!UNRESOLVED_REFERENCE!>ok<!>
val test38: String = TestCWC.<!UNRESOLVED_REFERENCE!>foo<!>()
val test37: String = TestCWC.ok
val test38: String = TestCWC.foo()