Hi. There is this compiler option `-Xno-param-asse...
# compiler
d
Hi. There is this compiler option
-Xno-param-assertions
that removes param assertions from all functions on JVM. Is it possible to remove these assertions only for certain functions using compiler plugin API?
u
Yes, you can try to remove them by yourself by implementing
org.jetbrains.kotlin.backend.jvm.extensions.ClassGeneratorExtension
and inspecting bytecode of those methods.
d
Thank you! K