segunfamisa06/29/2020, 6:19 AM
replacement suggestions for
However, when I use a sealed class hierarchy to model my state, e.g like I've done here (https://github.com/segunfamisa/android-zeitung/pull/17/files#diff-03a45e46e60aaa4e3efa4e4e6041dea3R11-R23), I get an exception during IR lowering. The line that stood out for me was:
I'm wondering if this is a technical limitation worth filing as a FR or bug, or something I totally not should be doing?
Caused by: java.lang.AssertionError: Object should have a primary constructor: ...
Leland Richardson [G]06/29/2020, 6:29 AM
mon06/29/2020, 6:43 AM
segunfamisa06/29/2020, 6:47 AM
mon06/29/2020, 6:55 AM
functions so calling them in a constructor is probably why
segunfamisa06/29/2020, 7:26 AM
Leland Richardson [G]06/29/2020, 4:00 PM