Generate SuspendFunction marker interface if supertype is suspend

Otherwise, is/as checks will not work.
 #KT-18707
This commit is contained in:
Ilmir Usmanov
2021-04-28 00:01:25 +02:00
committed by TeamCityServer
parent 5d296a01c2
commit cb89bd0e13
6 changed files with 77 additions and 1 deletions
@@ -9819,6 +9819,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendDestructuringInLambdas.kt");
}
@Test
@TestMetadata("suspendFunctionAsSupertypeIsCheck.kt")
public void testSuspendFunctionAsSupertypeIsCheck() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionAsSupertypeIsCheck.kt");
}
@Test
@TestMetadata("suspendFunctionIsAs.kt")
public void testSuspendFunctionIsAs() throws Exception {