Signed-off-by: Jean Privat <jean@pryen.org>
#alt1#var i: Object = 1
i += 2
i.output
+i -= 1
+i.output
+i *= 3
+i.output
+i /= 2
+i.output
+i %= 5
+i.output
+i <<= 3
+i.output
+i >>= 2
+i.output
return new_A( s + o );
`}
+ fun +: A import value, A `{
+ int s = A_value(recv);
+ return new_A(+s);
+ `}
+
fun -( other : A ) : A import value, A `{
int s = A_value( recv );
int o = A_value( other );
a[ 74 ] = new A( 96 )
print a # 96
+print(+(new A(123)))
print(-(new A(123)))