FIR: Adjust test data to correct from FE 1.0 point-of-view behavior
^KT-38031 Related
This commit is contained in:
committed by
teamcityserver
parent
6e6be7c953
commit
226893c648
+2
-2
@@ -1,6 +1,6 @@
|
||||
FILE: main.kt
|
||||
public final fun main(): R|kotlin/Unit| {
|
||||
Q|W|.R|/W.E|().R|kotlin/String.length|
|
||||
Q|W|.R|/W.E|.R|kotlin/String.length|
|
||||
Q|W|.R|/W.E|.<Unresolved name: w>#
|
||||
Q|W.E|.<Unresolved name: length>#
|
||||
Q|W.E|.R|/W.E.w|
|
||||
}
|
||||
|
||||
@@ -12,6 +12,6 @@ public class W {
|
||||
// FILE: main.kt
|
||||
fun main() {
|
||||
W.E().length // ambiguity in old FE, resolved to static method in FIR
|
||||
W.E.length // resolved to static field in FIR and old FE
|
||||
W.E.<!UNRESOLVED_REFERENCE!>w<!> // resolved to static field in FE
|
||||
W.E.<!UNRESOLVED_REFERENCE!>length<!> // resolved with error to the class W.E in FIR and old FE
|
||||
W.E.w // resolved to static field W.e.W in FE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user