Unary postfix fixes

This commit is contained in:
dcodeIO
2017-12-03 01:18:35 +01:00
parent eaf9253b96
commit 032ae379cd
7 changed files with 310 additions and 15 deletions

View File

@ -5,7 +5,6 @@
+1.25;
-1.25;
!1.25;
// ~1.25;
let i: i32 = 0;
@ -15,6 +14,8 @@ let i: i32 = 0;
~i;
++i;
--i;
i++;
i--;
i = +1;
i = -1;
@ -26,6 +27,8 @@ i = !i;
i = ~i;
i = ++i;
i = --i;
i = i++;
i = i--;
let I: i64 = 0;
@ -35,6 +38,8 @@ let I: i64 = 0;
~I;
++I;
--I;
I++;
I--;
I = +1;
I = -1;
@ -46,43 +51,47 @@ I = !I;
I = ~I;
I = ++I;
I = --I;
I = I++;
I = I--;
let f: f32 = 0;
+f;
-f;
!f;
// ~f;
++f;
--f;
f++;
f--;
f = +1.25;
f = -1.25;
i = !1.25;
// i = ~1.25;
f = +f;
f = -f;
i = !f;
// i = ~f;
f = ++f;
f = --f;
f = f++;
f = f--;
let F: f64 = 0;
+F;
-F;
!F;
// ~F;
++F;
--F;
F++;
F--;
F = +1.25;
F = -1.25;
I = !1.25;
// I = ~1.25;
F = +F;
F = -F;
I = !F;
// I = ~F;
F = ++F;
F = --F;
F = F++;
F = F--;