I have an question regarding the new "value class"...
# announcements
n
I have an question regarding the new "value class" (successor of "inline class") from 1.4.30: it states: "From now on, Kotlin requires the
@JvmInline
annotation before a class declaration for the JVM backend". Is that only required for Java compatibility or do I have to add this to all value/inline classes going forward for all my JVM code, even for 100% Kotlin code?
g
I believe it required if you target JVM, it will not compile JVM artifact without it (at least until you target it to valhalla, which is not supported yet)