From 9857bdc891c0b792cd685ebbe6e3cedf8517fded Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Sun, 25 Feb 2024 11:09:30 +0200 Subject: [PATCH] [FIR2IR] Unwrap typealiases during applying of suspend conversion ^KT-65002 Fixed --- .../based/LLFirBlackBoxCodegenBasedTestGenerated.java | 6 ++++++ ...LLFirReversedBlackBoxCodegenBasedTestGenerated.java | 6 ++++++ .../kotlin/fir/backend/generators/AdapterGenerator.kt | 3 ++- .../FirLightTreeBlackBoxCodegenTestGenerated.java | 6 ++++++ ...odegenWithIrFakeOverrideGeneratorTestGenerated.java | 6 ++++++ .../codegen/FirPsiBlackBoxCodegenTestGenerated.java | 6 ++++++ .../suspendConversionOfAliasedType.kt | 10 ++++++++++ .../runners/JvmAbiConsistencyTestBoxGenerated.java | 6 ++++++ .../codegen/IrBlackBoxCodegenTestGenerated.java | 6 ++++++ .../IrBlackBoxCodegenWithIrInlinerTestGenerated.java | 6 ++++++ ...irBlackBoxCodegenTestWithInlineScopesGenerated.java | 6 ++++++ .../kotlin/codegen/LightAnalysisModeTestGenerated.java | 5 +++++ .../js/test/fir/FirJsCodegenBoxTestGenerated.java | 6 ++++++ .../js/test/fir/FirJsES6CodegenBoxTestGenerated.java | 6 ++++++ .../kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java | 6 ++++++ .../js/test/ir/IrJsES6CodegenBoxTestGenerated.java | 6 ++++++ .../blackbox/FirNativeCodegenBoxTestGenerated.java | 6 ++++++ .../blackbox/FirNativeCodegenBoxTestNoPLGenerated.java | 6 ++++++ .../test/blackbox/NativeCodegenBoxTestGenerated.java | 6 ++++++ .../blackbox/NativeCodegenBoxTestNoPLGenerated.java | 6 ++++++ .../wasm/test/FirWasmJsCodegenBoxTestGenerated.java | 6 ++++++ .../wasm/test/K1WasmCodegenBoxTestGenerated.java | 6 ++++++ 22 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java index 84a92e314fd..ce9eb8524b9 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java @@ -53232,6 +53232,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java index eb07095190d..a6b996a3412 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java @@ -53232,6 +53232,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/AdapterGenerator.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/AdapterGenerator.kt index 559a0b6e512..cc0a8ab61bb 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/AdapterGenerator.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/AdapterGenerator.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.render import org.jetbrains.kotlin.fir.resolve.FirSamResolver import org.jetbrains.kotlin.fir.resolve.calls.FirFakeArgumentForCallableReference import org.jetbrains.kotlin.fir.resolve.calls.ResolvedCallArgument +import org.jetbrains.kotlin.fir.resolve.fullyExpandedType import org.jetbrains.kotlin.fir.resolve.substitution.AbstractConeSubstitutor import org.jetbrains.kotlin.fir.resolve.toFirRegularClassSymbol import org.jetbrains.kotlin.fir.symbols.ConeTypeParameterLookupTag @@ -603,7 +604,7 @@ internal class AdapterGenerator( expectedFunctionalType: ConeClassLikeType, argument: FirExpression ): IrSimpleFunctionSymbol? { - val argumentType = ((argument as? FirSamConversionExpression)?.expression ?: argument).resolvedType + val argumentType = ((argument as? FirSamConversionExpression)?.expression ?: argument).resolvedType.fullyExpandedType(session) val argumentTypeWithInvoke = argumentType.findSubtypeOfBasicFunctionType(session, expectedFunctionalType) ?: return null return if (argumentTypeWithInvoke.isSomeFunctionType(session)) { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java index 2ae41237f06..75f34e7033b 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java @@ -52915,6 +52915,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java index 780fef85412..9a99ecbe5c6 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated.java @@ -52915,6 +52915,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java index 197a309c6a8..731938baf18 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java @@ -52973,6 +52973,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt b/compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt new file mode 100644 index 00000000000..1f99d85377e --- /dev/null +++ b/compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt @@ -0,0 +1,10 @@ +// DONT_TARGET_EXACT_BACKEND: JVM +// ISSUE: KT-65002 +typealias Listener = (String) -> Unit + +fun foo(f: suspend (String) -> Unit): String = "OK" + +fun box(): String { + val f: Listener = {} + return foo(f) +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java index 88f7ce395c0..fb2d3376c05 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java @@ -52283,6 +52283,12 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index b8a1b9f5f88..f59579a42d7 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -52283,6 +52283,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java index ee308a8ddd8..1f3a2c61d46 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java @@ -52283,6 +52283,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java index d8a21ec35a1..6e241b668d6 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java @@ -52225,6 +52225,12 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 4c41948d83d..d721716c30a 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -42131,6 +42131,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOnVarargElements.kt"); diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java index 7ea3ea13952..9139cf20b70 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsCodegenBoxTestGenerated.java @@ -36791,6 +36791,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest { runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java index b00f58b47fd..1158878bebf 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/fir/FirJsES6CodegenBoxTestGenerated.java @@ -36791,6 +36791,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java index ac9fb71a579..f6c5ffe1c36 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenBoxTestGenerated.java @@ -36227,6 +36227,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest { runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java index f56383579ad..9a06ad5a7a4 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsES6CodegenBoxTestGenerated.java @@ -36227,6 +36227,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java index 0b07373499d..f75ab008bfe 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestGenerated.java @@ -40138,6 +40138,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java index 8a594085f95..aa4288f311b 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/FirNativeCodegenBoxTestNoPLGenerated.java @@ -41158,6 +41158,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java index 0bfd63be2af..e37186fef39 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestGenerated.java @@ -38542,6 +38542,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java index c3c1bb8328b..5bd9e9e7825 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/test/blackbox/NativeCodegenBoxTestNoPLGenerated.java @@ -39551,6 +39551,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenBoxTestGenerated.java index d988b0b61a1..9fc94dcb5ee 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/FirWasmJsCodegenBoxTestGenerated.java @@ -36683,6 +36683,12 @@ public class FirWasmJsCodegenBoxTestGenerated extends AbstractFirWasmJsCodegenBo runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() { diff --git a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java index 592859b1daa..046c85a4179 100644 --- a/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java +++ b/wasm/wasm.tests/tests-gen/org/jetbrains/kotlin/wasm/test/K1WasmCodegenBoxTestGenerated.java @@ -36119,6 +36119,12 @@ public class K1WasmCodegenBoxTestGenerated extends AbstractK1WasmCodegenBoxTest runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionCompatibility.kt"); } + @Test + @TestMetadata("suspendConversionOfAliasedType.kt") + public void testSuspendConversionOfAliasedType() { + runTest("compiler/testData/codegen/box/suspendConversion/suspendConversionOfAliasedType.kt"); + } + @Test @TestMetadata("suspendConversionOnVarargElements.kt") public void testSuspendConversionOnVarargElements() {