TypeScript/tests/baselines/reference/declFileTypeAnnotationParenType.types

44 lines
847 B
Plaintext
Raw Normal View History

2014-11-11 02:08:50 +01:00
=== tests/cases/compiler/declFileTypeAnnotationParenType.ts ===
class c {
>c : c
2014-11-11 02:08:50 +01:00
private p: string;
>p : string
2014-11-11 02:08:50 +01:00
}
var x: (() => c)[] = [() => new c()];
>x : (() => c)[]
>c : c
2014-11-11 02:08:50 +01:00
>[() => new c()] : (() => c)[]
>() => new c() : () => c
>new c() : c
>c : typeof c
2014-11-11 02:08:50 +01:00
var y = [() => new c()];
>y : (() => c)[]
2014-11-11 02:08:50 +01:00
>[() => new c()] : (() => c)[]
>() => new c() : () => c
>new c() : c
>c : typeof c
2014-11-11 02:08:50 +01:00
var k: (() => c) | string = (() => new c()) || "";
>k : string | (() => c)
>c : c
2014-11-11 02:08:50 +01:00
>(() => new c()) || "" : string | (() => c)
>(() => new c()) : () => c
>() => new c() : () => c
>new c() : c
>c : typeof c
2015-04-13 21:36:11 +02:00
>"" : string
2014-11-11 02:08:50 +01:00
var l = (() => new c()) || "";
>l : string | (() => c)
2014-11-11 02:08:50 +01:00
>(() => new c()) || "" : string | (() => c)
>(() => new c()) : () => c
>() => new c() : () => c
>new c() : c
>c : typeof c
2015-04-13 21:36:11 +02:00
>"" : string
2014-11-11 02:08:50 +01:00