I am trying to play around with value and inline c...
# announcements
w
I am trying to play around with value and inline classes on the kotlin playground but it has an unresolved reference to the JvmInline annotation, and specifically importing
kotlin.jvm.JvmInline
leads to a
This declaration is only available since Kotlin 1.5 and cannot be used with the specified API version 1.4
is there a specific way to get this to work in the playground currently?
w
see, thats for gradle...im trying to get it to work in the kotlin playground
e
https://kotlinlang.org/docs/reference/whatsnew1430.html
To try the preview version of inline classes, add the compiler option
-Xinline-classes
or
-language-version 1.5
.
maybe file an issue on https://github.com/JetBrains/kotlin-playground if you want to see it enabled there
w
would that be in the program arguments in the settings tab?
e
else you can run your own
no, program args vs compiler args
w
yea i was planning on running in intellij once i got the chance but currently im on mobile so i dont have access to intellij currently 😞
is there a way to change compiler args in the kotlin playground?
e
aside from updating the kotlin-playground itself, no
w
oh ok
i
Yes, new language features require enabling language version 1.5 with a compiler argument, which is not specified for compiler used in Kotlin playground.
w
i guess i will wait for the website to get updated then thanks
i
I'll file an issue for specifying it.
w
ah thanks, any idea when it will be enabled?
oh ok thank you!