https://kotlinlang.org logo
j

janvladimirmostert

06/20/2020, 1:30 PM
it's rather annoying that i can't have both Serializable and JsExport at the same time
Copy code
@JsExport
//@Serializable
@ExperimentalJsExport
data class Blah(
    var name: String? = null,
)
or
Copy code
//@JsExport
@Serializable
//@ExperimentalJsExport
data class Blah(
    var name: String? = null,
)
With both of them, i get this error
Copy code
e: java.lang.AssertionError: Properties without fields are not supported com.company.Blah.Companion_instance
👆 1
s

spierce7

06/20/2020, 5:05 PM
Perhaps another bug should be filed for this?
👍 1
j

janvladimirmostert

06/20/2020, 6:45 PM
@spierce7, will logging another bug get this issue more attention?