1
0
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-05-06 04:12:15 +00:00
assemblyscript/tests/parser/constructor.ts.fixture.ts
dcodeIO 63d4579118 Fix some array function parsing and serialization issues
Quite similar to  and also uses its test, but also fixes the serializer and doesn't try to parse an untyped 'x => x'.
2018-10-04 09:53:47 +02:00

9 lines
196 B
TypeScript

class MyClass {
constructor() {}
constructor(a: i32) {}
constructor(a: i32, b: i32) {}
}
class MyClassImplicit {
constructor(public a: i32, private readonly b?: i32 = 2, c?: i32 = 3) {}
}