Fixed
Status Update
Comments
lp...@google.com <lp...@google.com>
cy...@gmail.com <cy...@gmail.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
ap...@google.com <ap...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
Description
Compose Compiler: 1.5.7
Kotlin: 1.9.21
I don't expect this code to do anything sensible, but the compiler shouldn't throw an exception.
This should have a better compile time error message and not throw an exception. Something like:
e: blah blah blah is not allowed in @Composable at line XYZ
OR it should compile successfully and then throw
StackOverflowException
at runtime if that composable is called.This code:
Causes this exception at build time: