mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-31 06:02:11 +00:00
Update Binaryen to latest; Various fixes
This commit is contained in:
16
tests/parser/calls.ts
Normal file
16
tests/parser/calls.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// Identifier
|
||||
id();
|
||||
|
||||
// Call
|
||||
id()();
|
||||
|
||||
// ElementAccess
|
||||
arr[0]();
|
||||
arr[0](1);
|
||||
|
||||
// PropertyAccess
|
||||
obj.a();
|
||||
obj.a(1);
|
||||
|
||||
// Everything
|
||||
id(a)[0](b)(c).a(d)(e)[1](f)(g);
|
7
tests/parser/calls.ts.fixture.ts
Normal file
7
tests/parser/calls.ts.fixture.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
id();
|
||||
id()();
|
||||
arr[0]();
|
||||
arr[0](1);
|
||||
obj.a();
|
||||
obj.a(1);
|
||||
id(a)[0](b)(c).a(d)(e)[1](f)(g);
|
Reference in New Issue
Block a user