PSA for everyone migrating to Kotlin 1.8 and compo...
# compose
p
PSA for everyone migrating to Kotlin 1.8 and compose 1.4: There is a pretty nasty compiler bug that causes early returns to crash at runtime:
Copy code
Column {
  if (true) return@Column
}
https://issuetracker.google.com/issues/266535050
💀 3
👍 3
👍🏽 1
j
I remember i had this issue on the 1.0. I was never able to return from inline composables, like Column or Row
s
Yeah, this sounds like a regression. It was definitely fixed at some point.