mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
408 B
TypeScript
21 lines
408 B
TypeScript
//// [tests/cases/conformance/types/nonPrimitive/nonPrimitiveRhsSideOfInExpression.ts] ////
|
|
|
|
//// [nonPrimitiveRhsSideOfInExpression.ts]
|
|
let o: object = {};
|
|
|
|
function f(): object {
|
|
return {};
|
|
}
|
|
|
|
const b1 = "foo" in o;
|
|
const b2 = "bar" in f();
|
|
|
|
//// [nonPrimitiveRhsSideOfInExpression.js]
|
|
"use strict";
|
|
let o = {};
|
|
function f() {
|
|
return {};
|
|
}
|
|
const b1 = "foo" in o;
|
|
const b2 = "bar" in f();
|