to work in Android Studio w/o warnigns? I'm running kotlin
2.2.0
and using latest stable Android Studio, also tested latest Canary, but still get warning about it being an experimental feature:
Copy code
The feature "when guards" is experimental and should be enabled explicitly. This can be done by supplying the compiler argument '-Xwhen-guards', but note that no stability guarantees are provided.
Building from command line and android studio works fine, however android studio still gives off warning. I have K2 mode enabled in Android Studio.