I love that if I have an actual class in jvm, other classes under jvm can reference its fields/functions outside of whats declared in commonMain
But (afaik) theres no good way to delcare that these classes are also value classes. Do you know of a way?
e
ephemient
07/01/2025, 2:18 PM
you can declare the classes as
@JvmInline value class
in the common sourceset. the
JvmInline
part will only apply to JVM
z
Zoltan Demant
07/01/2025, 2:24 PM
Yes, but then I also need (again, afaik) to specify some constructor argument in commonMain, right?