[FIR] Ensure qualifier resolution takes place for type aliases.

When resolving a name that is used as a receiver and all
candidates are classifier symbols, we need to perform
qualifier resolution. The code used to only do that for
regular classes, and would not perform qualifier resolution if
there was a type alias candidate.

^KT-51171 Fixed
This commit is contained in:
Mads Ager
2022-02-08 14:15:28 +01:00
committed by teamcity
parent ca72790962
commit c8cade5bf3
6 changed files with 37 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
// TARGET_BACKEND: JVM
// FILE: Error.java
public class Error {
static String foo() {
return "OK";
}
}
// FILE: test.kt
fun box() = Error.foo()