Skip to content

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Jul 9, 2024

@JVMOnly is defined on the expect fun, but not on the actual funs.

This triggers a warning:

Annotation @JVMOnly is missing on actual declaration.
All annotations from expect fun coroutineErrorCollectorInterceptor(): TestExecutionInterceptor defined in io.kotest.engine.test.interceptors in file interceptors.kt must be present with the same arguments on actual fun coroutineErrorCollectorInterceptor(): TestExecutionInterceptor defined in io.kotest.engine.test.interceptors in file CoroutineErrorCollectorInterceptor.kt, otherwise they might behave incorrectly.

Part of #4085

`@JVMOnly` is defined on the `expect fun`, but not on the `actual fun`s.

This triggers a warning:

> Annotation `@JVMOnly` is missing on actual declaration.
> All annotations from expect `fun coroutineErrorCollectorInterceptor(): TestExecutionInterceptor defined in io.kotest.engine.test.interceptors in file interceptors.kt` must be present with the same arguments on actual `fun coroutineErrorCollectorInterceptor(): TestExecutionInterceptor defined in io.kotest.engine.test.interceptors in file CoroutineErrorCollectorInterceptor.kt`, otherwise they might behave incorrectly.

Part of #4085
@aSemy aSemy marked this pull request as ready for review July 9, 2024 22:47
@aSemy aSemy added this pull request to the merge queue Jul 12, 2024
Merged via the queue into master with commit 08b9440 Jul 12, 2024
7 checks passed
@aSemy aSemy deleted the adam/fix/sync-annotation-on-expect-to-actuals branch July 12, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants