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
@@ -8117,6 +8117,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/coroutines/kt55494.kt");
}
@TestMetadata("kt56407.kt")
public void testKt56407() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/kt56407.kt");
}
@TestMetadata("lastExpressionIsLoop.kt")
public void testLastExpressionIsLoop() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/lastExpressionIsLoop.kt");