mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
14 lines
234 B
TypeScript
14 lines
234 B
TypeScript
import "allocator/arena";
|
|
|
|
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);
|