I think I've found a compiler bug: ```@Composable ...
# compose
m
I think I've found a compiler bug:
Copy code
@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
If you can't find anything with a quick search, always file. At worst it'll be deduplicated onto an existing bug.
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.
👍🏽 1
👍 3
l
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
👍 1