mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-20 02:11:31 +00:00
Binary expression operator overloads for +/==; Check allocation flow in ternary expressions; Cache empty array buffers; Sealed decorator for non-derivable internals
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import "allocator/arena";
|
||||
|
||||
// preliminary
|
||||
|
||||
var str: string = "hi, I'm a string";
|
||||
@ -31,3 +33,6 @@ assert(parseFloat("1") == 1);
|
||||
assert(parseFloat("0.1") == 0.1);
|
||||
assert(parseFloat(".25") == 0.25);
|
||||
assert(parseFloat(".1foobar") == 0.1);
|
||||
|
||||
var c = "a" + "b";
|
||||
assert(c == "ab");
|
||||
|
Reference in New Issue
Block a user