43 lines
847 B
Text
43 lines
847 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
|
|
>"" : string
|
|
|
|
var l = (() => new c()) || "";
|
|
>l : string | (() => c)
|
|
>(() => new c()) || "" : string | (() => c)
|
|
>(() => new c()) : () => c
|
|
>() => new c() : () => c
|
|
>new c() : c
|
|
>c : typeof c
|
|
>"" : string
|
|
|