2014-11-11 02:08:50 +01:00
|
|
|
=== tests/cases/compiler/declFileTypeAnnotationParenType.ts ===
|
|
|
|
|
|
|
|
class c {
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : c, Symbol(c,Decl(declFileTypeAnnotationParenType.ts,0,0))
|
2014-11-11 02:08:50 +01:00
|
|
|
|
|
|
|
private p: string;
|
2015-04-13 22:54:22 +02:00
|
|
|
>p : string, Symbol(p,Decl(declFileTypeAnnotationParenType.ts,1,9))
|
2014-11-11 02:08:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var x: (() => c)[] = [() => new c()];
|
2015-04-13 22:54:22 +02:00
|
|
|
>x : (() => c)[], Symbol(x,Decl(declFileTypeAnnotationParenType.ts,5,3))
|
|
|
|
>c : c, Symbol(c,Decl(declFileTypeAnnotationParenType.ts,0,0))
|
2014-11-11 02:08:50 +01:00
|
|
|
>[() => new c()] : (() => c)[]
|
|
|
|
>() => new c() : () => c
|
|
|
|
>new c() : c
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : typeof c, Symbol(c,Decl(declFileTypeAnnotationParenType.ts,0,0))
|
2014-11-11 02:08:50 +01:00
|
|
|
|
|
|
|
var y = [() => new c()];
|
2015-04-13 22:54:22 +02:00
|
|
|
>y : (() => c)[], Symbol(y,Decl(declFileTypeAnnotationParenType.ts,6,3))
|
2014-11-11 02:08:50 +01:00
|
|
|
>[() => new c()] : (() => c)[]
|
|
|
|
>() => new c() : () => c
|
|
|
|
>new c() : c
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : typeof c, Symbol(c,Decl(declFileTypeAnnotationParenType.ts,0,0))
|
2014-11-11 02:08:50 +01:00
|
|
|
|
|
|
|
var k: (() => c) | string = (() => new c()) || "";
|
2015-04-13 22:54:22 +02:00
|
|
|
>k : string | (() => c), Symbol(k,Decl(declFileTypeAnnotationParenType.ts,8,3))
|
|
|
|
>c : c, Symbol(c,Decl(declFileTypeAnnotationParenType.ts,0,0))
|
2014-11-11 02:08:50 +01:00
|
|
|
>(() => new c()) || "" : string | (() => c)
|
|
|
|
>(() => new c()) : () => c
|
|
|
|
>() => new c() : () => c
|
|
|
|
>new c() : c
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : typeof c, Symbol(c,Decl(declFileTypeAnnotationParenType.ts,0,0))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
2014-11-11 02:08:50 +01:00
|
|
|
|
|
|
|
var l = (() => new c()) || "";
|
2015-04-13 22:54:22 +02:00
|
|
|
>l : string | (() => c), Symbol(l,Decl(declFileTypeAnnotationParenType.ts,9,3))
|
2014-11-11 02:08:50 +01:00
|
|
|
>(() => new c()) || "" : string | (() => c)
|
|
|
|
>(() => new c()) : () => c
|
|
|
|
>() => new c() : () => c
|
|
|
|
>new c() : c
|
2015-04-13 22:54:22 +02:00
|
|
|
>c : typeof c, Symbol(c,Decl(declFileTypeAnnotationParenType.ts,0,0))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
2014-11-11 02:08:50 +01:00
|
|
|
|