TypeScript/tests/baselines/reference/nonContextuallyTypedLogicalOr.js

21 lines
271 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [nonContextuallyTypedLogicalOr.ts]
interface Contextual {
dummy;
p?: number;
}
interface Ellement {
dummy;
p: any;
}
var c: Contextual;
var e: Ellement;
(c || e).dummy;
//// [nonContextuallyTypedLogicalOr.js]
var c;
var e;
(c || e).dummy;