-
Notifications
You must be signed in to change notification settings - Fork 1.9k
coroutines-test as an MPP #2965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -56,12 +56,11 @@ public final class kotlinx/coroutines/test/TestDispatchers { | |||
} | |||
|
|||
public abstract interface class kotlinx/coroutines/test/UncaughtExceptionCaptor { | |||
public abstract fun cleanupTestCoroutines ()V | |||
public abstract fun cleanupTestCoroutinesCaptor ()V |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this rename, JS IR compiler just fails, and the native compiler complains
Member inherits different @Throws filters from UncaughtExceptionCaptor, DelayController
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth reporting, because JS IR should ignore @Throws
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -56,12 +56,11 @@ public final class kotlinx/coroutines/test/TestDispatchers { | |||
} | |||
|
|||
public abstract interface class kotlinx/coroutines/test/UncaughtExceptionCaptor { | |||
public abstract fun cleanupTestCoroutines ()V | |||
public abstract fun cleanupTestCoroutinesCaptor ()V |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth reporting, because JS IR should ignore @Throws
0e62052
to
78e76b3
Compare
Change the build scripts and the file layout so that kotlinx-coroutines-test is built on all platforms.
Change the build scripts and the file layout so that kotlinx-coroutines-test is built on all platforms.
This PR shouldn't change any behavior and instead only ensures that the test module can be built for all platforms. As is, it already requires introducing incompatibility, but, luckily, mostly in the interfaces that we decided to deprecate anyway.
Dispatchers.setMain
isn't implemented for any targets other than JVM, all the other functionality seems to have been ported fine.