https://kotlinlang.org logo
#announcements
Title
# announcements
n

nkiesel

02/04/2021, 4:14 PM
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

gildor

02/05/2021, 7:06 AM
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)
9 Views