Is it possible to tell kotlin compiler to avoid generating deprecated methods like this:
Copy code
@kotlin.Deprecated public constructor
in the
class
file?
r
raulraja
12/18/2019, 7:05 PM
Not sure if externally it’s possible with some compiler flag but if it isn’t it’s possible with a compiler plugin.
It could intercept the IR or codegen phase scanning for those and emitting diagnostics if it finds them or completely remove them from the tree all together.