mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 14:31:28 +00:00
Add @operator.binary
, @operator.prefix
, @operator.postfix
decorators for #124
This commit is contained in:
10
tests/parser/decorators.ts
Normal file
10
tests/parser/decorators.ts
Normal file
@ -0,0 +1,10 @@
|
||||
@global
|
||||
@operator("+")
|
||||
@operator.binary("-")
|
||||
@operator.prefix("~")
|
||||
@operator.postfix("++")
|
||||
@unmanaged
|
||||
@sealed
|
||||
@inline
|
||||
@custom
|
||||
function a(): void {}
|
10
tests/parser/decorators.ts.fixture.ts
Normal file
10
tests/parser/decorators.ts.fixture.ts
Normal file
@ -0,0 +1,10 @@
|
||||
@global
|
||||
@operator("+")
|
||||
@operator.binary("-")
|
||||
@operator.prefix("~")
|
||||
@operator.postfix("++")
|
||||
@unmanaged
|
||||
@sealed
|
||||
@inline
|
||||
@custom
|
||||
function a(): void {}
|
Reference in New Issue
Block a user