Skip to content

Commit 2bd0f29

Browse files
authored
Remove @PublishedApi from unwrap to comply with new compiler restriction (#3810)
In KT-58551 we require all annotations from expect declaration to be present on actual. Currently, `unwrap` is not called from public inline functions. We can safely remove it. Co-authored-by: Roman Efremov <[email protected]>
1 parent fa218c6 commit 2bd0f29

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ internal expect suspend inline fun recoverAndThrow(exception: Throwable): Nothin
4040
* The opposite of [recoverStackTrace].
4141
* It is guaranteed that `unwrap(recoverStackTrace(e)) === e`
4242
*/
43-
@PublishedApi // published for the multiplatform implementation of kotlinx-coroutines-test
4443
internal expect fun <E: Throwable> unwrap(exception: E): E
4544

4645
internal expect class StackTraceElement

0 commit comments

Comments
 (0)