Oliver.O
12/04/2023, 5:01 PMOliver.O
12/04/2023, 5:02 PMimport kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
@Serializable
class Reference<Referenceable> {
@Transient
var target: Referenceable? = null
}
Module "consumer" contains this class:
import kotlinx.serialization.Serializable
@Serializable
class TreeNode {
private var parent = Reference<TreeNode>()
}
Then compileKotlinJs
produces the above error with 2.0.0-Beta1, but not with 2.0.0-dev-9415.andylamax
12/08/2023, 1:56 AMOliver.O
12/11/2023, 7:24 PMsandwwraith
12/11/2023, 7:33 PMOliver.O
12/11/2023, 7:49 PMOliver.O
12/11/2023, 9:58 PMOliver.O
12/11/2023, 10:15 PM