https://kotlinlang.org logo
#announcements
Title
# announcements
k

karelpeeters

08/14/2017, 8:08 AM
Maybe because
|=
is also the bitwise or operator and that would be translated as
or
, and they forgot to check for the boolean case.
a

arekolek

02/11/2019, 12:44 PM
I looked at it again after all this time and realised that
|=
in Java is the “compound assignment” for “boolean logical operator” (
|
), not for the “conditional-or operator” (
||
). So there was no bug there in the IDE 😛
k

karelpeeters

02/11/2019, 12:48 PM
That's good to know, thanks!