I'm trying to enable context receivers in a multip...
# multiplatform
d
I'm trying to enable context receivers in a multiplatform project. It works for the JVM module if I do
kotlinOptions.freeCompilerArgs += listOf("-Xcontext-receivers")
in the JVM compilation. But I don't know how to do it for the common module, since it does not seem to have a compilation. The IDE keeps reporting "The feature "context receivers" is experimental and should be enabled explicitly" in common code.
e
as far as I know, context receivers are still a JVM-only prototype. https://youtrack.jetbrains.com/issue/KT-51270
d
Ah, thank you for the info! As I am only prototyping anyways, I'll do it in the JVM module for now.
1369 Views