Huáng Jùnliàng f697e7995d Transform class static block (#12143)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 21:16:24 +02:00

12 lines
152 B
JavaScript

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