I'm on 1.4.20 (LEGACY) and I have a data class wit...
# javascript
r
I'm on 1.4.20 (LEGACY) and I have a data class with both
@JsExport
and
@Serializable
annotations. The generated JS code is not valid and fails with DCE processing because something like this is generated:
package$example.<init> = Test_init;
. Is this a known issue? I know
KT-39740
, but it's for IR and I'm using legacy. The same code compiles fine with IR.
👀 1
I'm using
@JsExport
with legacy because I'm trying to compile the lib with
BOTH
mode and I have a single test sources where I need this annotation.
With only
@JsExport
or only
@Serializable
there is no problem, it fails only when both are present.
And that's the end of porting KVision to IR for now ;-(
t
IR - In futuRe