mzgreen
04/29/2021, 11:41 AM@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]jw
04/29/2021, 11:43 AMjw
04/29/2021, 11:44 AMmzgreen
04/29/2021, 11:54 AMLeland Richardson [G]
04/30/2021, 6:11 PM