Generate SuspendFunction marker interface if supertype is suspend
Otherwise, is/as checks will not work. #KT-18707
This commit is contained in:
committed by
TeamCityServer
parent
5d296a01c2
commit
cb89bd0e13
+5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user