K1: introduce BUILDER_INFERENCE_STUB_PARAMETER_TYPE to prevent compiler crashes
This diagnostic is reported in rare situations when StubTypeForBuilderInference is kept as a parameter type of for loop or lambda. Before this commit, we had in K1 "Could not load module <error module>" from IrLinker instead. Related to: KT-52757, KT-53109, KT-63841, KT-64066 #KT-53478 Fixed
This commit is contained in:
committed by
Space Team
parent
6f6e37f552
commit
678816f9e8
Generated
+12
@@ -2742,6 +2742,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo
|
||||
runTest("compiler/testData/codegen/box/builderInference/issues/kt53422b.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53478.kt")
|
||||
public void testKt53478() {
|
||||
runTest("compiler/testData/codegen/box/builderInference/issues/kt53478.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53553.kt")
|
||||
public void testKt53553() {
|
||||
@@ -2909,6 +2915,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo
|
||||
public void testKt63840c() {
|
||||
runTest("compiler/testData/codegen/box/builderInference/issues/kt63840c.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt64066.kt")
|
||||
public void testKt64066() {
|
||||
runTest("compiler/testData/codegen/box/builderInference/issues/kt64066.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Generated
+12
@@ -2742,6 +2742,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/builderInference/issues/kt53422b.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53478.kt")
|
||||
public void testKt53478() {
|
||||
runTest("compiler/testData/codegen/box/builderInference/issues/kt53478.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53553.kt")
|
||||
public void testKt53553() {
|
||||
@@ -2909,6 +2915,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest
|
||||
public void testKt63840c() {
|
||||
runTest("compiler/testData/codegen/box/builderInference/issues/kt63840c.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt64066.kt")
|
||||
public void testKt64066() {
|
||||
runTest("compiler/testData/codegen/box/builderInference/issues/kt64066.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user