Hello :wave: I got this warning on Kotlin 2.2.0-R...
# eap
k
Hello 👋 I got this warning on Kotlin 2.2.0-RC, is there a specific diagnostic ID to suppress it? We enabled
allWarningsAsErrors
so it becomes a problem if we cannot suppress this particular warning 😬
Copy code
w: Experimental context receivers are superseded by context parameters.
Replace the '-Xcontext-receivers' compiler argument with '-Xcontext-parameters' and migrate to the new syntax.
I tried with this but doesn't seem working
Copy code
freeCompilerArgs.add("-Xwarning-level=CONTEXT_RECEIVERS_DEPRECATED:disabled")
d
This warning is not a regular diagnostic and cannot be suppressed. Note that "future releases" from the warning message most likely would be
2.2.20
, so it's worth migrating from context receivers ASAP
cc @kirillrakhman
k
Ah I see, thank you 🙏