1
0
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-05-01 09:52:19 +00:00
assemblyscript/tests/parser/constructor.ts.fixture.ts

9 lines
196 B
TypeScript
Raw Normal View History

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) {}
}