69 lines
965 B
Plaintext
69 lines
965 B
Plaintext
|
=== tests/cases/compiler/castParentheses.ts ===
|
||
|
class a {
|
||
|
>a : a
|
||
|
|
||
|
static b: any;
|
||
|
>b : any
|
||
|
}
|
||
|
|
||
|
var b = (<any>a);
|
||
|
>b : any
|
||
|
>(<any>a) : any
|
||
|
><any>a : any
|
||
|
>a : typeof a
|
||
|
|
||
|
var b = (<any>a).b;
|
||
|
>b : any
|
||
|
>(<any>a).b : any
|
||
|
>(<any>a) : any
|
||
|
><any>a : any
|
||
|
>a : typeof a
|
||
|
>b : any
|
||
|
|
||
|
var b = (<any>a.b).c;
|
||
|
>b : any
|
||
|
>(<any>a.b).c : any
|
||
|
>(<any>a.b) : any
|
||
|
><any>a.b : any
|
||
|
>a.b : any
|
||
|
>a : typeof a
|
||
|
>b : any
|
||
|
>c : any
|
||
|
|
||
|
var b = (<any>a.b()).c;
|
||
|
>b : any
|
||
|
>(<any>a.b()).c : any
|
||
|
>(<any>a.b()) : any
|
||
|
><any>a.b() : any
|
||
|
>a.b() : any
|
||
|
>a.b : any
|
||
|
>a : typeof a
|
||
|
>b : any
|
||
|
>c : any
|
||
|
|
||
|
var b = (<any>new a);
|
||
|
>b : any
|
||
|
>(<any>new a) : any
|
||
|
><any>new a : any
|
||
|
>new a : a
|
||
|
>a : typeof a
|
||
|
|
||
|
var b = (<any>new a.b);
|
||
|
>b : any
|
||
|
>(<any>new a.b) : any
|
||
|
><any>new a.b : any
|
||
|
>new a.b : any
|
||
|
>a.b : any
|
||
|
>a : typeof a
|
||
|
>b : any
|
||
|
|
||
|
var b = (<any>new a).b
|
||
|
>b : any
|
||
|
>(<any>new a).b : any
|
||
|
>(<any>new a) : any
|
||
|
><any>new a : any
|
||
|
>new a : a
|
||
|
>a : typeof a
|
||
|
>b : any
|
||
|
|