Hi all, I am getting compilations errors with the ...
# multiplatform
a
Hi all, I am getting compilations errors with the new context receivers. I have configured it as follows:
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all {
    kotlinOptions.freeCompilerArgs = listOf("-Xcontext-receivers")
}
And my context receiver is simple:
Copy code
context(Node.BuilderScope)
fun foo() {
// nothing here yet
}
The error I am getting:
Copy code
java.lang.IllegalStateException: FULL: FUN name:foo visibility:public modality:FINAL <> (<this>:nl.avwie.vdom.Node.BuilderScope) returnType:kotlin.Unit
 Ir: nl.avwie.vdom#foo(nl.avwie.vdom.Node.BuilderScope){}
 Descriptor: nl.avwie.vdom#foo!nl.avwie.vdom.Node.BuilderScope(){}

	at org.jetbrains.kotlin.backend.common.serialization.mangle.ManglerChecker$visitDeclaration$2.invoke(ManglerChecker.kt:96)
	at org.jetbrains.kotlin.backend.common.serialization.mangle.ManglerChecker$visitDeclaration$2.invoke(ManglerChecker.kt:95)
Ah, switching tot the LEGACY compiler fixed it. However, I really want to be on the IR compiler.
Ah, I am dumb. It is only supported at the moment for the JVM compilation.....