2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/specializationError.ts ===
|
|
|
|
interface Promise<T> {
|
|
|
|
>Promise : Promise<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
then<U>(value: T): void;
|
|
|
|
>then : <U>(value: T) => void
|
|
|
|
>U : U
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Bar {
|
|
|
|
>Bar : Bar
|
|
|
|
|
|
|
|
bar(value: "Menu"): Promise<string>;
|
|
|
|
>bar : { (value: "Menu"): Promise<string>; <T>(value: string, element: string): Promise<T>; <T>(value: string): Promise<T>; }
|
|
|
|
>value : "Menu"
|
2014-08-19 04:56:03 +02:00
|
|
|
>Promise : Promise<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
bar<T>(value: string, element: string): Promise<T>;
|
|
|
|
>bar : { (value: "Menu"): Promise<string>; <T>(value: string, element: string): Promise<T>; <T>(value: string): Promise<T>; }
|
|
|
|
>T : T
|
|
|
|
>value : string
|
|
|
|
>element : string
|
2014-08-19 04:56:03 +02:00
|
|
|
>Promise : Promise<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
|
|
|
|
bar<T>(value: string): Promise<T>;
|
|
|
|
>bar : { (value: "Menu"): Promise<string>; <T>(value: string, element: string): Promise<T>; <T>(value: string): Promise<T>; }
|
|
|
|
>T : T
|
|
|
|
>value : string
|
2014-08-19 04:56:03 +02:00
|
|
|
>Promise : Promise<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|