TypeScript/tests/baselines/reference/infinitelyExpandingTypes5.types

50 lines
1 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/infinitelyExpandingTypes5.ts ===
interface Query<T> {
>Query : Query<T>
>T : T
2014-08-15 23:33:16 +02:00
foo(x: T): Query<T[]>;
>foo : (x: T) => Query<T[]>
>x : T
>T : T
>Query : Query<T>
>T : T
2014-08-15 23:33:16 +02:00
}
interface Enumerator<T> {
>Enumerator : Enumerator<T>
>T : T
2014-08-15 23:33:16 +02:00
(action: (item: T, index: number) => boolean): boolean;
>action : (item: T, index: number) => boolean
>item : T
>T : T
>index : number
2014-08-15 23:33:16 +02:00
}
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
2014-08-15 23:33:16 +02:00
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
2014-08-15 23:33:16 +02:00
function from(arg: any): any {
>from : { <T>(array: T[]): Query<T>; <T>(enumerator: Enumerator<T>): Query<T>; }
>arg : any
2014-08-15 23:33:16 +02:00
return undefined;
>undefined : undefined
2014-08-15 23:33:16 +02:00
}