mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 09:51:33 +00:00
Builtins rewrite with type parameter inference; Small integer math optimizations; Switchify
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
assert(true);
|
||||
assert(1 == 1);
|
||||
assert(1);
|
||||
assert(1 > 0);
|
||||
assert(0.5);
|
||||
assert(0.5 > 0.4);
|
||||
assert(0x100000000);
|
||||
assert(0x100000000 > 1);
|
||||
|
||||
// can be used as an expression
|
||||
if (!assert(true, "must be true"))
|
||||
unreachable();
|
||||
|
Reference in New Issue
Block a user