2021-03-12 23:29:55 +01:00

8 lines
99 B
JavaScript

class Foo {
static bar = 42;
static {
this.foo = this.bar;
}
}
expect(Foo.foo).toBe(42);