K2 Scripting, Fir2Ir: allow out of order supertypes declaration

fix script declarations registration logic in Fir2Ir to allow
supertypes of a class to be defined later than the class itself.

#KT-64534 fixed
This commit is contained in:
Ilya Chernikov
2024-03-15 15:08:49 +01:00
committed by Space Team
parent f18aa5e70f
commit 0df3a37303
9 changed files with 76 additions and 1 deletions
@@ -43545,6 +43545,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/script/localCaptureTests.kt");
}
@TestMetadata("outOuOrderDecls.kt")
public void testOutOuOrderDecls() {
runTest("compiler/testData/codegen/box/script/outOuOrderDecls.kt");
}
@TestMetadata("scripInstance.kt")
public void testScripInstance() {
runTest("compiler/testData/codegen/box/script/scripInstance.kt");