Another issue, this one caused by the 1.9.20-Beta Kotlin IDE plugin (232-1.9.20-Beta-release-242-IJ9559.62). Some `expect`/`actual` function calls annotated
@Throws
warn:
Annotation @Throws(exceptionClasses = {<SomeException>::class})
is missing on actual declaration. All annotations from expect fun <someFunction>() defined in ...
must be present with the same arguments on actual fun <someFunction>() defined in ...
, otherwise they might behave incorrectly.
even though the
actual
is in fact annotated with the same exception class as the
expect
.
This seems to occur when the exception class is defined as an
actual typealias
, but not in source sets where the exception is an
actual class
. Everything works at compile/run time.
The warnings occur with either Kotlin 1.9.10 or 1.9.20-Beta, with the 1.9.20-Beta IDE plugin, but not with the 1.9.0 IDE plugin.