mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-25 04:31:43 +00:00
Implement function types / indirect calls / trampolines (#39)
This commit is contained in:
8
tests/parser/type-signature.ts
Normal file
8
tests/parser/type-signature.ts
Normal file
@ -0,0 +1,8 @@
|
||||
type foo = () => void;
|
||||
type foo = (() => void) | null;
|
||||
type foo = (a: i32) => i32;
|
||||
type foo = (a?: i32) => i32;
|
||||
type foo = (this: AClass, a: i32) => i32;
|
||||
type foo = () => () => void;
|
||||
type foo = () => (() => void) | null;
|
||||
type foo = (this: AClass, a: i32) => ((this: BClass, b?: f32) => i32) | null;
|
Reference in New Issue
Block a user