38 lines
558 B
Plaintext
38 lines
558 B
Plaintext
|
=== tests/cases/compiler/nonContextuallyTypedLogicalOr.ts ===
|
||
|
interface Contextual {
|
||
|
>Contextual : Contextual
|
||
|
|
||
|
dummy;
|
||
|
>dummy : any
|
||
|
|
||
|
p?: number;
|
||
|
>p : number
|
||
|
}
|
||
|
|
||
|
interface Ellement {
|
||
|
>Ellement : Ellement
|
||
|
|
||
|
dummy;
|
||
|
>dummy : any
|
||
|
|
||
|
p: any;
|
||
|
>p : any
|
||
|
}
|
||
|
|
||
|
var c: Contextual;
|
||
|
>c : Contextual
|
||
|
>Contextual : Contextual
|
||
|
|
||
|
var e: Ellement;
|
||
|
>e : Ellement
|
||
|
>Ellement : Ellement
|
||
|
|
||
|
(c || e).dummy;
|
||
|
>(c || e).dummy : any
|
||
|
>(c || e) : Contextual | Ellement
|
||
|
>c || e : Contextual | Ellement
|
||
|
>c : Contextual
|
||
|
>e : Ellement
|
||
|
>dummy : any
|
||
|
|