2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/specializationError.ts ===
|
|
|
|
interface Promise<T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Promise : Promise<T>, Symbol(Promise, Decl(specializationError.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(specializationError.ts, 0, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
then<U>(value: T): void;
|
2015-04-13 23:01:57 +02:00
|
|
|
>then : <U>(value: T) => void, Symbol(then, Decl(specializationError.ts, 0, 22))
|
|
|
|
>U : U, Symbol(U, Decl(specializationError.ts, 1, 9))
|
|
|
|
>value : T, Symbol(value, Decl(specializationError.ts, 1, 12))
|
|
|
|
>T : T, Symbol(T, Decl(specializationError.ts, 0, 18))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface Bar {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Bar : Bar, Symbol(Bar, Decl(specializationError.ts, 2, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
bar(value: "Menu"): Promise<string>;
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : { (value: "Menu"): Promise<string>; <T>(value: string, element: string): Promise<T>; <T>(value: string): Promise<T>; }, Symbol(bar, Decl(specializationError.ts, 4, 15), Decl(specializationError.ts, 5, 40), Decl(specializationError.ts, 6, 55))
|
|
|
|
>value : "Menu", Symbol(value, Decl(specializationError.ts, 5, 8))
|
|
|
|
>Promise : Promise<T>, Symbol(Promise, Decl(specializationError.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
bar<T>(value: string, element: string): Promise<T>;
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : { (value: "Menu"): Promise<string>; <T>(value: string, element: string): Promise<T>; <T>(value: string): Promise<T>; }, Symbol(bar, Decl(specializationError.ts, 4, 15), Decl(specializationError.ts, 5, 40), Decl(specializationError.ts, 6, 55))
|
|
|
|
>T : T, Symbol(T, Decl(specializationError.ts, 6, 8))
|
|
|
|
>value : string, Symbol(value, Decl(specializationError.ts, 6, 11))
|
|
|
|
>element : string, Symbol(element, Decl(specializationError.ts, 6, 25))
|
|
|
|
>Promise : Promise<T>, Symbol(Promise, Decl(specializationError.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(specializationError.ts, 6, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
bar<T>(value: string): Promise<T>;
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : { (value: "Menu"): Promise<string>; <T>(value: string, element: string): Promise<T>; <T>(value: string): Promise<T>; }, Symbol(bar, Decl(specializationError.ts, 4, 15), Decl(specializationError.ts, 5, 40), Decl(specializationError.ts, 6, 55))
|
|
|
|
>T : T, Symbol(T, Decl(specializationError.ts, 7, 8))
|
|
|
|
>value : string, Symbol(value, Decl(specializationError.ts, 7, 11))
|
|
|
|
>Promise : Promise<T>, Symbol(Promise, Decl(specializationError.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(specializationError.ts, 7, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|