From 9163d8d5f33145540dd49febd2c22cc39ecd7f9f Mon Sep 17 00:00:00 2001 From: SvyatoslavScherbina Date: Mon, 30 Mar 2020 16:26:31 +0300 Subject: [PATCH] Fix objcexport test (#4037) Apparently compiler was using different copy of NativePlatformAnalyzerServices until recently, so it didn't include new frontend checkers for `@Throws` --- backend.native/tests/objcexport/coroutines.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend.native/tests/objcexport/coroutines.kt b/backend.native/tests/objcexport/coroutines.kt index e05db7a657e..204ec020945 100644 --- a/backend.native/tests/objcexport/coroutines.kt +++ b/backend.native/tests/objcexport/coroutines.kt @@ -79,7 +79,7 @@ fun callSuspendFun(suspendFun: SuspendFun, doYield: Boolean, doThrow: Boolean, r .startCoroutine(ResultHolderCompletion(resultHolder)) } -@Throws +@Throws(CoroutineException::class) suspend fun callSuspendFun2(suspendFun: SuspendFun, doYield: Boolean, doThrow: Boolean): Int { return suspendFun.suspendFun(doYield = doYield, doThrow = doThrow) } @@ -127,7 +127,7 @@ private suspend fun callAbstractSuspendBridgeImpl(bridge: AbstractSuspendBridge) assertFailsWith { bridge.nothingAsUnit(10) } } -@Throws +@Throws(CoroutineException::class) fun callSuspendBridge(bridge: AbstractSuspendBridge, resultHolder: ResultHolder) { suspend { callSuspendBridgeImpl(bridge)