swc/tests/fixture/issue-1279/case1/input/index.ts
강동윤 a3105428ba
fix(swc): Fix various bugs (#1440)
swc:
 - Use `hygiene_with_config` instead. (#1279)
 - Allow enabling source map with `.swcrc`. (#1309)

swc_ecma_transforms_base:
 - `hygiene`: Add an option to preserve class names. (#1279)

swc_ecma_transforms_compat:
 - `block_scoping`: Allow using `break` in switch cases. (#1415)
2021-03-01 17:19:37 +09:00

11 lines
164 B
TypeScript

export class Foo {
nested() {
class Foo {
static foo = 'foo';
static bar = Foo.foo;
}
return new Foo()
}
}