Retain wrap state in parenthesized expressions; Void statements fwiw

This commit is contained in:
dcodeIO
2018-03-04 18:52:12 +01:00
parent 00c4f6fa52
commit d81ce5f907
10 changed files with 166 additions and 95 deletions

12
tests/compiler/void.ts Normal file
View File

@ -0,0 +1,12 @@
void 1;
function anInt(): i32 {
return 2;
}
void anInt();
var u8Val1: u8 = 1;
var u8Val2: u8 = 255;
void (u8Val1 + u8Val2); // can remain unwrapped