[JS IR] Fix default arguments in suspend functions
Don't forget to remap parameter references in default arg expressions The issue originally discovered in kotlinx.coroutines tests. - add test
This commit is contained in:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -6857,6 +6857,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleSuspendCallableReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleWithDefaultValue.kt")
|
||||
public void testSimpleWithDefaultValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleWithDefaultValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleWithHandleResult.kt")
|
||||
public void testSimpleWithHandleResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt");
|
||||
|
||||
Generated
+5
@@ -6263,6 +6263,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleSuspendCallableReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleWithDefaultValue.kt")
|
||||
public void testSimpleWithDefaultValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleWithDefaultValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleWithHandleResult.kt")
|
||||
public void testSimpleWithHandleResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -6086,6 +6086,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleSuspendCallableReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleWithDefaultValue.kt")
|
||||
public void testSimpleWithDefaultValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleWithDefaultValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleWithHandleResult.kt")
|
||||
public void testSimpleWithHandleResult() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleWithHandleResult.kt");
|
||||
|
||||
+6
@@ -7082,6 +7082,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleSuspendCallableReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleWithDefaultValue.kt")
|
||||
public void testSimpleWithDefaultValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/simpleWithDefaultValue.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleWithHandleResult.kt")
|
||||
public void testSimpleWithHandleResult() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user