swc/crates/swc_ecma_parser/tests/tsc/newTargetNarrowing.ts
2022-02-04 17:08:38 +09:00

13 lines
164 B
TypeScript

// @target: es6
// @strict: true
function foo(x: true) { }
function f() {
if (new.target.marked === true) {
foo(new.target.marked);
}
}
f.marked = true;