TypeScript/tests/baselines/reference/nonContextuallyTypedLogicalOr.types

38 lines
1.5 KiB
Text
Raw Normal View History

2014-10-10 23:41:14 +02:00
=== tests/cases/compiler/nonContextuallyTypedLogicalOr.ts ===
interface Contextual {
2015-04-13 23:01:57 +02:00
>Contextual : Contextual, Symbol(Contextual, Decl(nonContextuallyTypedLogicalOr.ts, 0, 0))
2014-10-10 23:41:14 +02:00
dummy;
2015-04-13 23:01:57 +02:00
>dummy : any, Symbol(dummy, Decl(nonContextuallyTypedLogicalOr.ts, 0, 22))
2014-10-10 23:41:14 +02:00
p?: number;
2015-04-13 23:01:57 +02:00
>p : number, Symbol(p, Decl(nonContextuallyTypedLogicalOr.ts, 1, 10))
2014-10-10 23:41:14 +02:00
}
interface Ellement {
2015-04-13 23:01:57 +02:00
>Ellement : Ellement, Symbol(Ellement, Decl(nonContextuallyTypedLogicalOr.ts, 3, 1))
2014-10-10 23:41:14 +02:00
dummy;
2015-04-13 23:01:57 +02:00
>dummy : any, Symbol(dummy, Decl(nonContextuallyTypedLogicalOr.ts, 5, 20))
2014-10-10 23:41:14 +02:00
p: any;
2015-04-13 23:01:57 +02:00
>p : any, Symbol(p, Decl(nonContextuallyTypedLogicalOr.ts, 6, 10))
2014-10-10 23:41:14 +02:00
}
var c: Contextual;
2015-04-13 23:01:57 +02:00
>c : Contextual, Symbol(c, Decl(nonContextuallyTypedLogicalOr.ts, 10, 3))
>Contextual : Contextual, Symbol(Contextual, Decl(nonContextuallyTypedLogicalOr.ts, 0, 0))
2014-10-10 23:41:14 +02:00
var e: Ellement;
2015-04-13 23:01:57 +02:00
>e : Ellement, Symbol(e, Decl(nonContextuallyTypedLogicalOr.ts, 11, 3))
>Ellement : Ellement, Symbol(Ellement, Decl(nonContextuallyTypedLogicalOr.ts, 3, 1))
2014-10-10 23:41:14 +02:00
(c || e).dummy;
2015-04-13 23:01:57 +02:00
>(c || e).dummy : any, Symbol(dummy, Decl(nonContextuallyTypedLogicalOr.ts, 0, 22), Decl(nonContextuallyTypedLogicalOr.ts, 5, 20))
2014-10-10 23:41:14 +02:00
>(c || e) : Contextual | Ellement
>c || e : Contextual | Ellement
2015-04-13 23:01:57 +02:00
>c : Contextual, Symbol(c, Decl(nonContextuallyTypedLogicalOr.ts, 10, 3))
>e : Ellement, Symbol(e, Decl(nonContextuallyTypedLogicalOr.ts, 11, 3))
>dummy : any, Symbol(dummy, Decl(nonContextuallyTypedLogicalOr.ts, 0, 22), Decl(nonContextuallyTypedLogicalOr.ts, 5, 20))
2014-10-10 23:41:14 +02:00