FIR: Rework qualifier-in-expression resolution
Get rid of stateful FirQualifiedNameResolver Resolve a.b.c-like calls step-by-step using just recursion ^KT-48363 Fixed
This commit is contained in:
committed by
teamcityserver
parent
69f7c2278d
commit
9575d4d242
+31
@@ -0,0 +1,31 @@
|
||||
// FIR_IDENTICAL
|
||||
// SKIP_TXT
|
||||
// FILE: test/W.java
|
||||
package test;
|
||||
|
||||
public class W {
|
||||
public void foo() {}
|
||||
public static void bar() {}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
package main1
|
||||
import test.W
|
||||
|
||||
val W: W = W()
|
||||
|
||||
fun main() {
|
||||
W.foo()
|
||||
W.<!UNRESOLVED_REFERENCE!>bar<!>()
|
||||
W().foo()
|
||||
}
|
||||
|
||||
// FILE: main2.kt
|
||||
package main2
|
||||
import test.W
|
||||
|
||||
fun main() {
|
||||
W.<!UNRESOLVED_REFERENCE!>foo<!>()
|
||||
W.bar()
|
||||
W().foo()
|
||||
}
|
||||
Reference in New Issue
Block a user