50 lines
1 KiB
Plaintext
50 lines
1 KiB
Plaintext
=== tests/cases/compiler/infinitelyExpandingTypes5.ts ===
|
|
interface Query<T> {
|
|
>Query : Query<T>
|
|
>T : T
|
|
|
|
foo(x: T): Query<T[]>;
|
|
>foo : (x: T) => Query<T[]>
|
|
>x : T
|
|
>T : T
|
|
>Query : Query<T>
|
|
>T : T
|
|
}
|
|
|
|
interface Enumerator<T> {
|
|
>Enumerator : Enumerator<T>
|
|
>T : T
|
|
|
|
(action: (item: T, index: number) => boolean): boolean;
|
|
>action : (item: T, index: number) => boolean
|
|
>item : T
|
|
>T : T
|
|
>index : number
|
|
}
|
|
|
|
function from<T>(array: T[]): Query<T>;
|
|
>from : { <T>(array: T[]): Query<T>; <T>(enumerator: Enumerator<T>): Query<T>; }
|
|
>T : T
|
|
>array : T[]
|
|
>T : T
|
|
>Query : Query<T>
|
|
>T : T
|
|
|
|
function from<T>(enumerator: Enumerator<T>): Query<T>;
|
|
>from : { <T>(array: T[]): Query<T>; <T>(enumerator: Enumerator<T>): Query<T>; }
|
|
>T : T
|
|
>enumerator : Enumerator<T>
|
|
>Enumerator : Enumerator<T>
|
|
>T : T
|
|
>Query : Query<T>
|
|
>T : T
|
|
|
|
function from(arg: any): any {
|
|
>from : { <T>(array: T[]): Query<T>; <T>(enumerator: Enumerator<T>): Query<T>; }
|
|
>arg : any
|
|
|
|
return undefined;
|
|
>undefined : undefined
|
|
}
|
|
|