JVM IR: Ignore class type parameters if function is static

Otherwise, it leads to type parameters duplication in case of
suspendImpls, since they inherit type parameters from containing class.

 #KT-56407: Fixed
This commit is contained in:
Ilmir Usmanov
2023-02-06 17:56:19 +01:00
committed by Space Team
parent c7bc439661
commit e42efe1ee6
15 changed files with 285 additions and 0 deletions
@@ -8352,6 +8352,12 @@ public class K2NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTes
runTest("compiler/testData/codegen/box/coroutines/kt55494.kt");
}
@Test
@TestMetadata("kt56407.kt")
public void testKt56407() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt56407.kt");
}
@Test
@TestMetadata("lastExpressionIsLoop.kt")
public void testLastExpressionIsLoop() throws Exception {
@@ -8263,6 +8263,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/coroutines/kt55494.kt");
}
@Test
@TestMetadata("kt56407.kt")
public void testKt56407() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt56407.kt");
}
@Test
@TestMetadata("lastExpressionIsLoop.kt")
public void testLastExpressionIsLoop() throws Exception {