satyarth
09/25/2025, 3:40 AMe: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
File being compiled: sourcecode/w1/src/main/java/com/app/ui/view/fragment/Fragment.kt
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.ir.util.IrUtilsKt.copyValueParametersToStatic(IrUtils.kt:1060)
Caused by: java.lang.AssertionError: Dispatch receiver type Fragment is not a subtype of BaseMainFragment
I'm using Kotlin 2.0.20 however I've set the Language Version to 1.9. I'm sure that's the cause here, but I wanted to understand what specifically is causing this (for future references too)Willem Veelenturf
09/25/2025, 11:49 AMcom.gradleup.kctf helped me alot.
https://github.com/flock-community/kmapper/blob/main/compiler-plugin/build.gradle.ktsmbonnin
09/25/2025, 12:15 PMkctf will help you with the test boilerplate setup.mbonnin
09/25/2025, 12:15 PMmbonnin
09/25/2025, 12:16 PM-Dorg.gradle.debug=true -Pkotlin.compiler.execution.strategy=in-process and then you can debug it from the Kotlin reposatyarth
09/26/2025, 4:26 AM