You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there are 4 ways to add two i32's together: a + b, a + &b,
&a + b and &a + &b. The same is possible for all other binary operators
and for all built-in numeric types that support those binary operators.
Similarly, unary operators also have both a ref and a non-ref version,
e.g., -7 == -&7.
However, the assignment versions of these binary operators don't allow
a ref right-hand side. This commit fixes that inconsistency by
implementing these operators.
These changes should be fully backwards compatible.
0 commit comments