Refactoring & clarification: implement new FIR tower resolver
This commit is contained in:
+1
-1
@@ -4,6 +4,6 @@ class A() {
|
||||
val x = 1
|
||||
|
||||
companion object {
|
||||
val y = x
|
||||
val y = <!UNRESOLVED_REFERENCE!>x<!>
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user