TypeScript/tests/cases/conformance/types/nonPrimitive/nonPrimitiveRhsSideOfInExpression.ts

8 lines
113 B
TypeScript
Raw Normal View History

2017-03-05 14:38:16 +01:00
let o: object = {};
function f(): object {
return {};
}
const b1 = "foo" in o;
const b2 = "bar" in f();