Hello Im using kotin muti-platform targetting java...
# javascript
v
Hello Im using kotin muti-platform targetting javascript and java using kotlin 1.4 and using the new
ir
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
Copy code
@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 around
t
Copy code
@JsExport
data class A(val id: Int, val some: String)

@JsExport
data class B(val id: Int = 0 , val a: A? = null)
Optional arguments?
a
Hello @Victor Harlan Lacson and @Victor Harlan Lacson, I am getting this error too but I got it since I have optional argument... is optional argument not supported?