2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/illegalGenericWrapping1.ts ===
|
|
|
|
interface Sequence<T> {
|
|
|
|
>Sequence : Sequence<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
each(iterator: (value: T) => void ): void;
|
|
|
|
>each : (iterator: (value: T) => void) => void
|
|
|
|
>iterator : (value: T) => void
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
map<U>(iterator: (value: T) => U): Sequence<U>;
|
|
|
|
>map : <U>(iterator: (value: T) => U) => Sequence<U>
|
|
|
|
>U : U
|
|
|
|
>iterator : (value: T) => U
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
>U : U
|
2014-08-19 04:56:03 +02:00
|
|
|
>Sequence : Sequence<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
|
|
|
|
filter(iterator: (value: T) => boolean): Sequence<T>;
|
|
|
|
>filter : (iterator: (value: T) => boolean) => Sequence<T>
|
|
|
|
>iterator : (value: T) => boolean
|
|
|
|
>value : T
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>Sequence : Sequence<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
|
|
|
|
groupBy<K>(keySelector: (value: T) => K): Sequence<{ key: K; items: Sequence<T>; }>;
|
|
|
|
>groupBy : <K>(keySelector: (value: T) => K) => Sequence<{ key: K; items: Sequence<T>; }>
|
|
|
|
>K : K
|
|
|
|
>keySelector : (value: T) => K
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
>K : K
|
2014-08-19 04:56:03 +02:00
|
|
|
>Sequence : Sequence<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>key : K
|
|
|
|
>K : K
|
|
|
|
>items : Sequence<T>
|
2014-08-19 04:56:03 +02:00
|
|
|
>Sequence : Sequence<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|