[FIR] SupertypeComputationSession: fix false positive invisible reference for local object

The problem is that FirAnonymousObject was ignored during getResolvedSuperTypeRefsForOutOfSessionDeclaration from SupertypeSupplier

^KT-58583 Fixed
This commit is contained in:
Dmitrii Gridin
2023-05-09 16:49:09 +02:00
committed by Space Team
parent c6d9821ef0
commit 2c294cba64
7 changed files with 50 additions and 2 deletions
@@ -597,6 +597,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/kt57214.kt");
}
@Test
@TestMetadata("kt58583.kt")
public void testKt58583() throws Exception {
runTest("compiler/testData/diagnostics/tests/kt58583.kt");
}
@Test
@TestMetadata("LValueAssignment.kt")
public void testLValueAssignment() throws Exception {
@@ -597,6 +597,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/kt57214.kt");
}
@Test
@TestMetadata("kt58583.kt")
public void testKt58583() throws Exception {
runTest("compiler/testData/diagnostics/tests/kt58583.kt");
}
@Test
@TestMetadata("LValueAssignment.kt")
public void testLValueAssignment() throws Exception {