Jeff Lockhart
09/15/2023, 8:43 PM@Throws
warn:
Annotationeven though theis missing on actual declaration. All annotations from expect@Throws(exceptionClasses = {<SomeException>::class})
must be present with the same arguments on actualfun <someFunction>() defined in ...
, otherwise they might behave incorrectly.fun <someFunction>() defined in ...
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.Margarita Bobova
09/18/2023, 8:42 AMbobko
09/18/2023, 9:53 AMRoman Efremov
09/18/2023, 10:12 AM