I have a "playground" project for trying new thing...
# intellij
k
I have a "playground" project for trying new things using Kotlin 2.1 release candidate. In my build.gradle.kts I've added enabled
-Xwhen-guards
. I share this project between two machines, one running 2024.3 Ultimate and the other, 2024.3 Community. The latter doesn't work with the new syntax: it continues to give the error message that the experimental feature needs to be enabled (even after invalidating the cache, restarting and rebuilding). Is this particular experimental feature only available in the Ultimate Edition?
b
not sure if that's the culprit, but do you have K2 mode enabled for both?
k
@bod that's it! I thought I had enabled K2 mode on both machines, but on double-checking I had only done it on one. Thanks!
🎉 1