Original error is: Local class should have its name computed in InventNamesForLocalClasses
Execute two cells:
class R {
val x: Int = 1
}
inline fun R.t(crossinline action: (R) -> Int) = object {
val y get() = action(this@t)
}
and
R().t {it.x * 2}
Result:
Backend Internal error: Exception during IR lowering
File being compiled: Line_316.jupyter-kts
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:50)
Original error is:
Local class should have its name computed in InventNamesForLocalClasses
Execute two cells:
and
Result: