TypeScript/tests/baselines/reference/castParentheses.types

69 lines
3.2 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/castParentheses.ts ===
class a {
2015-04-13 23:01:57 +02:00
>a : a, Symbol(a, Decl(castParentheses.ts, 0, 0))
2014-08-15 23:33:16 +02:00
static b: any;
2015-04-13 23:01:57 +02:00
>b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9))
2014-08-15 23:33:16 +02:00
}
var b = (<any>a);
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>(<any>a) : any
><any>a : any
2015-04-13 23:01:57 +02:00
>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var b = (<any>a).b;
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>(<any>a).b : any
>(<any>a) : any
><any>a : any
2015-04-13 23:01:57 +02:00
>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0))
2014-08-15 23:33:16 +02:00
>b : any
var b = (<any>a.b).c;
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>(<any>a.b).c : any
>(<any>a.b) : any
><any>a.b : any
2015-04-13 23:01:57 +02:00
>a.b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9))
>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0))
>b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9))
2014-08-15 23:33:16 +02:00
>c : any
var b = (<any>a.b()).c;
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>(<any>a.b()).c : any
>(<any>a.b()) : any
><any>a.b() : any
>a.b() : any
2015-04-13 23:01:57 +02:00
>a.b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9))
>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0))
>b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9))
2014-08-15 23:33:16 +02:00
>c : any
var b = (<any>new a);
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>(<any>new a) : any
><any>new a : any
>new a : a
2015-04-13 23:01:57 +02:00
>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0))
2014-08-15 23:33:16 +02:00
var b = (<any>new a.b);
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>(<any>new a.b) : any
><any>new a.b : any
>new a.b : any
2015-04-13 23:01:57 +02:00
>a.b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9))
>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0))
>b : any, Symbol(a.b, Decl(castParentheses.ts, 0, 9))
2014-08-15 23:33:16 +02:00
var b = (<any>new a).b
2015-04-13 23:01:57 +02:00
>b : any, Symbol(b, Decl(castParentheses.ts, 4, 3), Decl(castParentheses.ts, 5, 3), Decl(castParentheses.ts, 6, 3), Decl(castParentheses.ts, 7, 3), Decl(castParentheses.ts, 8, 3), Decl(castParentheses.ts, 9, 3), Decl(castParentheses.ts, 10, 3))
2014-08-15 23:33:16 +02:00
>(<any>new a).b : any
>(<any>new a) : any
><any>new a : any
>new a : a
2015-04-13 23:01:57 +02:00
>a : typeof a, Symbol(a, Decl(castParentheses.ts, 0, 0))
2014-08-15 23:33:16 +02:00
>b : any