mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
5a91ab994c
swc_bundler: - Fix dce bug. (#1156) swc_ecma_transforms: - resolver: Ignore non-computed class properties. - dce: Handle usages in class property initializers.
15 lines
141 B
TypeScript
15 lines
141 B
TypeScript
import { d, D } from "./q.ts";
|
|
|
|
class A {
|
|
private s: D = d();
|
|
|
|
a() {
|
|
this.s.resolve();
|
|
}
|
|
|
|
b() {
|
|
this.s = d();
|
|
}
|
|
}
|
|
|
|
new A(); |