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
@@ -7647,6 +7647,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/funInterface.kt");
}
@TestMetadata("suspendFunctionAsSupertypeIsCheck.kt")
public void ignoreSuspendFunctionAsSupertypeIsCheck() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/featureIntersection/suspendFunctionAsSupertypeIsCheck.kt");
}
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}