Skip to content

Commit 6ceda56

Browse files
committed
Work around KT-60304 by suppressing "INVISIBLE_SETTER"
1 parent 78d6d53 commit 6ceda56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kotlinx-coroutines-test/common/src/TestCoroutineDispatchers.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ private class UnconfinedTestDispatcherImpl(
9393

9494
override fun isDispatchNeeded(context: CoroutineContext): Boolean = false
9595

96-
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE") // do not remove the INVISIBLE_REFERENCE suppression: required in K2
96+
// do not remove the INVISIBLE_REFERENCE and INVISIBLE_SETTER suppressions: required in K2
97+
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "INVISIBLE_SETTER")
9798
override fun dispatch(context: CoroutineContext, block: Runnable) {
9899
checkSchedulerInContext(scheduler, context)
99100
scheduler.sendDispatchEvent(context)

0 commit comments

Comments
 (0)