TypeScript/tests/baselines/reference/comparisonOperatorWithIntersectionType.js

12 lines
199 B
TypeScript

//// [comparisonOperatorWithIntersectionType.ts]
declare let a: { a: 1 }
a > 1;
declare let b: { a: 1 } & { b: number }
b > 1;
//// [comparisonOperatorWithIntersectionType.js]
a > 1;
b > 1;