mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 12:11:50 +00:00
Retain wrap state in parenthesized expressions; Void statements fwiw
This commit is contained in:
12
tests/compiler/void.ts
Normal file
12
tests/compiler/void.ts
Normal 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
|
Reference in New Issue
Block a user