mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
9 lines
117 B
TypeScript
9 lines
117 B
TypeScript
class Foo {
|
|
static bar: i32 = 42;
|
|
static getBar(): i32 {
|
|
return this.bar;
|
|
}
|
|
}
|
|
|
|
assert(Foo.getBar() == 42);
|