kuroko/test/testReflectedBinaryOperators.krk.expect
K. Lange 70d5f1b2b7 Implement NotImplemented, fallback operators
Adds 'NOTIMPL' as a new primitive value, available from
__builtins__.NotImplemented. Adds support for inverse /
reflected overrides for binary operators. Adds opcodes
for LESS_EQUAL and GREATER_EQUAL.
2021-03-30 16:42:29 +09:00

19 lines
305 B
Plaintext

__radd__ called 42
42 + RAdder()
__rmul__ called 42
42 * RAdder()
__rpow__ called 42
42 ** RAdder()
__rrshift__ called 42
42 >> RAdder()
__rlshift__ called 42
42 << RAdder()
__ror__ called 42
42 | RAdder()
__rand__ called 42
42 & RAdder()
__rxor__ called 42
42 ^ RAdder()
__rmod__ called 42
42 % RAdder()