Make the Kotlin compiler crash with this one simpl...
# getting-started
r
Make the Kotlin compiler crash with this one simple trick ! 😄 https://pl.kotl.in/osPNRb6eb
💥 5
👏 3
s
impressive, even Kotlin 1.9.0-Beta complains! So K2 doesn't fix it.
r
It has something to do with context receivers on a suspend lambda, very niche. But it's already reported ! https://youtrack.jetbrains.com/issue/KT-52213
j
even Kotlin 1.9.0-Beta complains! So K2 doesn't fix it
@Stephan Schröder Does 1.9.0-Beta enable K2 by default? That would be surprising 🤔
s
@Joffrey hmm, at least you Kotlin 1.8.20 uses K2 if you configure to use languageVersion = "1.9", so I extrapolated from there 🤔 Update: hmm, the documentation says "2.0" which makes more sense. Maybe I remember this wrong??