:new: :kotlinnew: Hi everyone! Kotlin 1.5.30 has b...
# announcements
a
🆕 K Hi everyone! Kotlin 1.5.30 has been released. It includes: • Sealed 
when
 statements • Support for
suspend
functions as supertypes • JS IR compiler in Beta • Native support for Apple silicon • And more Learn more in the blog post.
👏🏿 1
🥳 3
🍎 3
🔥 28
K 67
👏 23
🎉 42
❤️ 83
K 69
s
This release appears to contain backwards-incompatible changes to Kotlin syntax checking and compiler analysis (namely sealed when statements). Why release this change now, rather than in Kotlin 1.6?
z
per the docs linked in the post - only if you enable the
-progressive
flag, which is exactly why they added that flag for early adopters
s
Gotcha. That makes me feel better.
j
can someone enlighten me on why do I need to extend my class to
suspend -> Unit()
? Thanks
a
Another new feature of 1.5.30 is the ability to return an inline value class from a suspend function that has default parameters without weird class cast exceptions at runtime. This issue stung me quite badly for a week after migrating to Result as a return type. https://youtrack.jetbrains.com/issue/KT-47206