Victor Harlan Lacson
08/21/2020, 10:01 PMir
compiler.
I encounterd an issue when exporting a class with @JsExport.
this happens when a class contains a field of another class
Can't find name for declaration FUN SYNTHESIZED_DECLARATION name:B$Create$ visibility:public modality:FINAL <> (id:<http://kotlin.Int|kotlin.Int>, a:A)
and this when i have an empty constructor on class A
Can't find name for declaration FUN SYNTHESIZED_DECLARATION name:Item_init_$Create$ visibility:public modality:FINAL <> () returnType:B
for example
@JsExport
data class A(val id: Int, val some: String)
@JsExport
data class B(val id: Int , val a: A?) {
@JsName("empty_constructor")
constuctor(): this(0,null)
}
would realy appreciate some work aroundturansky
08/22/2020, 1:50 AM@JsExport
data class A(val id: Int, val some: String)
@JsExport
data class B(val id: Int = 0 , val a: A? = null)
Optional arguments?Ardian
10/22/2020, 3:30 PM