2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/genericAndNonGenericOverload1.ts ===
|
|
|
|
interface callable2<T> {
|
|
|
|
>callable2 : callable2<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
(a: T): T;
|
|
|
|
>a : T
|
|
|
|
>T : T
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
<Z>(a: T): Z;
|
|
|
|
>Z : Z
|
|
|
|
>a : T
|
|
|
|
>T : T
|
|
|
|
>Z : Z
|
|
|
|
}
|
|
|
|
var c2: callable2<number>;
|
|
|
|
>c2 : callable2<number>
|
2014-08-19 04:56:03 +02:00
|
|
|
>callable2 : callable2<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
c2<string>(1);
|
|
|
|
>c2<string>(1) : string
|
|
|
|
>c2 : callable2<number>
|
|
|
|
|