mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
Quite similar to #256 and also uses its test, but also fixes the serializer and doesn't try to parse an untyped 'x => x'.
11 lines
263 B
TypeScript
11 lines
263 B
TypeScript
function simple(): void {}
|
|
function typeparams<T, V extends T>(a?: V | null = null): void {}
|
|
@decorator()
|
|
function withdecorator(): void {}
|
|
function withthis(this: i32): i32 {
|
|
return this;
|
|
}
|
|
function withthisp(this: i32, a: f32, b: f64): i32 {
|
|
return this;
|
|
}
|