dimsuz
08/22/2020, 11:55 PMdev13
, does anyone by chance know if its fixed, or should I report it?
Asking because upgrading to later versions could require some effort.
Button(
modifier = if (enabled || MaterialTheme.colors.isLight) borderModifier else Modifier
)
Reversing the order of condition operands fixes compilation. This compiles OK:
Button(
modifier = if (MaterialTheme.colors.isLight || enabled) borderModifier else Modifier
)
I will post a reported exception in the thread >>e: java.lang.IllegalStateException: Backend Internal error: Exception during IR lowering
...
Caused by: java.lang.AssertionError: OROR condition should have an 'if a then true' body on its first branch, and an 'if true then b' body on its second branch. Failing expression: WHEN type=kotlin.Boolean origin=OROR
Adam Powell
08/23/2020, 12:02 AMdimsuz
08/23/2020, 10:44 AM