42 lines
819 B
Text
42 lines
819 B
Text
|
=== tests/cases/compiler/declFileTypeAnnotationParenType.ts ===
|
||
|
|
||
|
class c {
|
||
|
>c : c
|
||
|
|
||
|
private p: string;
|
||
|
>p : string
|
||
|
}
|
||
|
|
||
|
var x: (() => c)[] = [() => new c()];
|
||
|
>x : (() => c)[]
|
||
|
>c : c
|
||
|
>[() => new c()] : (() => c)[]
|
||
|
>() => new c() : () => c
|
||
|
>new c() : c
|
||
|
>c : typeof c
|
||
|
|
||
|
var y = [() => new c()];
|
||
|
>y : (() => c)[]
|
||
|
>[() => new c()] : (() => c)[]
|
||
|
>() => new c() : () => c
|
||
|
>new c() : c
|
||
|
>c : typeof c
|
||
|
|
||
|
var k: (() => c) | string = (() => new c()) || "";
|
||
|
>k : string | (() => c)
|
||
|
>c : c
|
||
|
>(() => new c()) || "" : string | (() => c)
|
||
|
>(() => new c()) : () => c
|
||
|
>() => new c() : () => c
|
||
|
>new c() : c
|
||
|
>c : typeof c
|
||
|
|
||
|
var l = (() => new c()) || "";
|
||
|
>l : string | (() => c)
|
||
|
>(() => new c()) || "" : string | (() => c)
|
||
|
>(() => new c()) : () => c
|
||
|
>() => new c() : () => c
|
||
|
>new c() : c
|
||
|
>c : typeof c
|
||
|
|