https://kotlinlang.org logo
#stdlib
Title
# stdlib
d

Daniele B

03/09/2023, 12:20 AM
When will it be possible to use ContextReceivers in the shared code? I am expecting this will happen with the new K2 compiler, but at the moment it looks like the K2 compiler is only available for JVM and JS (and hence not for Native or Wasm): https://kotlinlang.org/docs/whatsnew-eap.html#how-to-enable-the-kotlin-k2-compiler Will the upcoming K2-Beta (which I guess will be available in Kotlin 1.9.0) allow the usage of ContextReceivers in the shared code?
👀 1
j

jw

03/09/2023, 12:56 AM
Better question for #compiler
Or on the youtrack, which you already did
4 Views