JVM IR: Fix types in generated function reference constructor
For references to suspend functions this fixes an IllegalStateException in the type mapper, which is what the "suspendFunctionMethodReference" test is about.
This commit is contained in:
committed by
Alexander Udalov
parent
f3db113a82
commit
20a5c44e41
Generated
+5
@@ -5753,6 +5753,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionMethodReference.kt")
|
||||
public void testSuspendFunctionMethodReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionMethodReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendInCycle.kt")
|
||||
public void testSuspendInCycle_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInCycle.kt", "kotlin.coroutines");
|
||||
|
||||
Generated
+5
@@ -5753,6 +5753,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionMethodReference.kt")
|
||||
public void testSuspendFunctionMethodReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionMethodReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendInCycle.kt")
|
||||
public void testSuspendInCycle_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInCycle.kt", "kotlin.coroutines");
|
||||
|
||||
+5
@@ -5753,6 +5753,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunImportedFromObject.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunctionMethodReference.kt")
|
||||
public void testSuspendFunctionMethodReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendFunctionMethodReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendInCycle.kt")
|
||||
public void testSuspendInCycle_1_3() throws Exception {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendInCycle.kt", "kotlin.coroutines");
|
||||
|
||||
Reference in New Issue
Block a user