mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
// The dead-strip counterpart: the same class-instance for-in that builds
|
|
// fine while unreached (tests/corpus/420-dead-strip-modules) fails the
|
|
// build the moment the entry path reaches it.
|
|
class Widget {
|
|
id = 1;
|
|
}
|
|
function walk(w: Widget): void {
|
|
for (const k in w) {
|
|
console.log(k);
|
|
}
|
|
}
|
|
walk(new Widget());
|