I tried using explicit backing field declarations in a project using Kotlin 2.0.0, but I get the error
Explicit backing field declarations are not supported in FE 1.0
Copy code
val foo: List<String>
field mFoo = MutableList<String>()
d
dmitriy.novozhilov
05/24/2024, 4:34 AM
You shouldn't, the feature is not ready even for preview
e
eygraber
05/24/2024, 4:41 AM
I was just curious about it. What does it mean that it isn't supported in FE 1.0? Does that mean that the front end compiler isn't 2.0, or does that means something else?
d
dmitriy.novozhilov
05/24/2024, 5:59 AM
It seems that you are using either language version 1.9 (which enables FE 1.0) or old IDE plugin (not K2 one), which is also uses FE 1.0
e
eygraber
05/24/2024, 6:01 AM
Oh it's the IDE plugin. That makes sense, thank you.