2020-09-16 20:21:40 +00:00
|
|
|
### Compilation failed:
|
|
|
|
|
|
|
|
error: 5: type mismatch: '>>=' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void shr_eq() { x >>= 1; }
|
|
|
|
^^^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 6: type mismatch: '<<=' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void shl_eq() { x <<= 1; }
|
|
|
|
^^^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 7: type mismatch: '&=' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void and_eq() { x &= 1; }
|
|
|
|
^^^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 8: type mismatch: '|=' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void or_eq() { x |= 1; }
|
|
|
|
^^^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 9: type mismatch: '^=' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void xor_eq() { x ^= 1; }
|
|
|
|
^^^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 11: type mismatch: '>>' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void shr() { x = x >> 1; }
|
|
|
|
^^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 12: type mismatch: '<<' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void shl() { x = x << 1; }
|
|
|
|
^^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 13: type mismatch: '&' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void and() { x = x & 1; }
|
|
|
|
^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 14: type mismatch: '|' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void or() { x = x | 1; }
|
|
|
|
^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
error: 15: type mismatch: '^' cannot operate on 'float2x2', 'int'
|
2022-04-06 22:24:52 +00:00
|
|
|
void xor() { x = x ^ 1; }
|
|
|
|
^^^^^
|
2020-09-16 20:21:40 +00:00
|
|
|
10 errors
|