Do i have to do anything special to be able to use...
# kotlin-native
g
Do i have to do anything special to be able to use the
@Throws
annotation in a
commonMain
module? The IDE doesn't find and i'm using kotlin 1.3.41
r
AFAIK
@Throws
exists only in JVM and native, so you’d have to do your own expect/actual declarations to access it in common
👍 1
e
g
And how would you go to declare so ios knows that a method from the common's can throw an exception?
Oh, i probably have to declare i expect an annotation, right? Probably that.