Getting a lot of warnings while compiling after switch to Kotlin 2.1.0-Beta2. More in thread...
PHondogo
10/14/2024, 8:36 PM
The compiler plugin 'androidx.compose.compiler.plugins.kotlin.ComposeIrGenerationExtension' generated invalid IR. Please report this bug to the plugin vendor. Kotlin fields are expected to always be private
FIELD name:app_example_Test$stable type:kotlin.Int visibility:public [final,static]
inside PROPERTY name:app_example_Test$stableprop visibility:public modality:FINAL [val]
inside FILE fqName:app.example fileName:/path/to/file.wasmjs.kt
PHondogo
10/14/2024, 8:38 PM
I understand that it is due to Compose compiler plugin generate non private fields.
Is it known issue or should be filed?
h
hfhbd
10/14/2024, 8:38 PM
It’s not only web assembly but all targets (because of IR). And I just got the same error messages
a
andylamax
10/14/2024, 9:19 PM
I rushed in here to report the very same thing 😄
andylamax
10/14/2024, 9:20 PM
Looks like we are going to have to wait for a compose release that has been compiled with kotlin 2.1.0 I guesse