[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
@@ -32460,6 +32460,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/regressions/kt5056.kt");
}
@TestMetadata("kt51171.kt")
public void testKt51171() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt51171.kt");
}
@TestMetadata("kt528.kt")
public void testKt528() throws Exception {
runTest("compiler/testData/codegen/box/regressions/kt528.kt");