Wrap continuation with ContinuationImpl on callable references
in startCoroutineUninterceptedOrReturn. Otherwise, the coroutine will not be interceptable later. Add a test, which checks, that intercepted continuation is released. #KT-55869
This commit is contained in:
committed by
Space Team
parent
9a2cb2609f
commit
d18672bfb1
+5
@@ -9875,6 +9875,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/intercepted.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("releaseIntercepted.kt")
|
||||
public void testReleaseIntercepted() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/releaseIntercepted.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("resultExceptionOrNullInLambda.kt")
|
||||
public void testResultExceptionOrNullInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/intrinsicSemantics/resultExceptionOrNullInLambda.kt");
|
||||
|
||||
Reference in New Issue
Block a user