Skip to content

Commit e51d946

Browse files
committed
Fix "Return type must be specified in explicit API mode"
1 parent 2b44613 commit e51d946

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

kotlinx-coroutines-core/common/src/internal/DispatchedTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal const val MODE_ATOMIC = 0
2323
* **DO NOT CHANGE THE CONSTANT VALUE**. It is being into the user code from [suspendCancellableCoroutine].
2424
*/
2525
@PublishedApi
26-
internal const val MODE_CANCELLABLE = 1
26+
internal const val MODE_CANCELLABLE: Int = 1
2727

2828
/**
2929
* Cancellable dispatch mode for [suspendCancellableCoroutineReusable].

kotlinx-coroutines-core/common/src/selects/SelectUnbiased.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ internal class UnbiasedSelectBuilderImpl<in R>(uCont: Continuation<R>) :
3636
val clauses = arrayListOf<() -> Unit>()
3737

3838
@PublishedApi
39-
internal fun handleBuilderException(e: Throwable) = instance.handleBuilderException(e)
39+
internal fun handleBuilderException(e: Throwable): Unit = instance.handleBuilderException(e)
4040

4141
@PublishedApi
4242
internal fun initSelectResult(): Any? {

kotlinx-coroutines-core/jvm/src/internal/LockFreeLinkedList.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import kotlinx.coroutines.*
1111
private typealias Node = LockFreeLinkedListNode
1212

1313
@PublishedApi
14-
internal const val UNDECIDED = 0
14+
internal const val UNDECIDED: Int = 0
1515

1616
@PublishedApi
17-
internal const val SUCCESS = 1
17+
internal const val SUCCESS: Int = 1
1818

1919
@PublishedApi
20-
internal const val FAILURE = 2
20+
internal const val FAILURE: Int = 2
2121

2222
@PublishedApi
2323
internal val CONDITION_FALSE: Any = Symbol("CONDITION_FALSE")

0 commit comments

Comments
 (0)