Hi all, I am just wondering what causes the issue ...
# compiler
j
Hi all, I am just wondering what causes the issue below
Copy code
"Class ... is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
e
most likely
-Xcontext-receivers
, as https://kotlinlang.org/docs/whatsnew1620.html#prototype-of-context-receivers-for-kotlin-jvm states
The feature is a prototype available only for Kotlin/JVM. With
-Xcontext-receivers
enabled, the compiler will produce pre-release binaries that cannot be used in production code.
I believe
-Xuse-k2
also (if you enable some new experimental features that aren't in pre-K2)
j
Thanks, I will have a try