Refactoring & clarification: implement new FIR tower resolver

This commit is contained in:
Mikhail Glukhikh
2020-01-10 18:58:42 +03:00
parent a3ab763f0b
commit 14204a842a
125 changed files with 1804 additions and 1085 deletions
@@ -4,6 +4,6 @@ class A() {
val x = 1
companion object {
val y = x
val y = <!UNRESOLVED_REFERENCE!>x<!>
}
}
@@ -21,7 +21,7 @@ enum class C {
C.A()
A()
//TODO: should be resolved with error
this.A()
this.<!UNRESOLVED_REFERENCE!>A<!>()
}
};
@@ -34,7 +34,7 @@ enum class C {
fun f() {
C.E1.A
C.E1.A()
C.E1.<!UNRESOLVED_REFERENCE!>A<!>()
C.E2.B()
C.E2.O
@@ -21,7 +21,7 @@ enum class C {
C.A()
A()
//TODO: should be resolved with error
this.A()
this.<!UNRESOLVED_REFERENCE!>A<!>()
}
};
@@ -34,7 +34,7 @@ enum class C {
fun f() {
C.E1.A
C.E1.A()
C.E1.<!UNRESOLVED_REFERENCE!>A<!>()
C.E2.B()
C.E2.O
@@ -4,6 +4,6 @@ class Test {
fun test(): Int = 12
companion object {
val a = test() // Check if resolver will be able to infer type of a variable
val a = <!UNRESOLVED_REFERENCE!>test<!>() // Check if resolver will be able to infer type of a variable
}
}