Already asked this in <#CDFP59223|webassembly> but...
# k2-adopters
r
Already asked this in #webassembly but I've got no answer. I'm using Kotlin
2.0.0-Beta4
and my build log is full of warnings:
This code uses error suppression for 'EXTERNAL_TYPE_EXTENDS_NON_EXTERNAL_TYPE'. While it might compile and work, the compiler behavior is UNSPECIFIED and WON'T BE PRESERVED. Please report your use case to the Kotlin issue tracker instead: <https://kotl.in/issue>
. Is there any way to suppress these suppression warnings?
k
Why do you need error suppression in your code?
r
k
You can use the compiler argument
-Xdont-warn-on-error-suppression
.
r
How to use multiple arguments? I've tried
freeCompilerArgs.add("-Xexpect-actual-classes -Xdont-warn-on-error-suppression")
and I have
Flag is not supported by this version of the compiler: -Xexpect-actual-classes -Xdont-warn-on-error-suppression
k
You probably need to pass them separately, not with a space in between.
r
Works great! Thank you! 🙂
k
Ideally, you wouldn't need it. But thank you for reporting your use case.
r
Now I can see other warnings to deal with 😉