@Composable
fun Foo() {
val bar = @Composable { }
// this works
val bazOk = listOf(null, bar)
// this doesn't
val bazNotOk = listOf(null, @Composable { })
}
the non working line crashes with
KotlinFrontEndException: Exception while analyzing expression
. Should I file it or it's already reported? cc @Leland Richardson [G]
j
jw
04/29/2021, 11:43 AM
If you can't find anything with a quick search, always file. At worst it'll be deduplicated onto an existing bug.
jw
04/29/2021, 11:44 AM
Even if it's not a bug (but it totally is), having a closed issue with the justification for why it's not a bug is still extremely valuable.
definitely looks like a bug. I have seen similar things but thought they were all fixed, and the stack trace seems new, so might be a recent regression. thanks for filing