mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
12 lines
207 B
TypeScript
12 lines
207 B
TypeScript
class AClass {
|
|
static aStaticField: i32 = 0;
|
|
aField: i32 = 1;
|
|
anotherField: f32 = 2;
|
|
constructor(value: f32) {
|
|
this.aField += 1;
|
|
this.anotherField = value;
|
|
}
|
|
}
|
|
|
|
var aClass = new AClass(3);
|