I love that if I have an actual class in jvm, othe...
# multiplatform
z
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
you can declare the classes as
@JvmInline value class
in the common sourceset. the
JvmInline
part will only apply to JVM
z
Yes, but then I also need (again, afaik) to specify some constructor argument in commonMain, right?