swc/crates/swc_ecma_parser/tests/tsc/nonPrimitiveRhsSideOfInExpression.ts

8 lines
106 B
TypeScript

let o: object = {};
function f(): object {
return {};
}
const b1 = "foo" in o;
const b2 = "bar" in f();