2014-07-13 01:04:16 +02:00
|
|
|
//// [inheritedGenericCallSignature.ts]
|
|
|
|
|
|
|
|
interface I1<T> {
|
|
|
|
|
|
|
|
(a: T): T;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface Object {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface I2<T> extends I1<T[]> {
|
|
|
|
|
|
|
|
b: T;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var x: I2<Date>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var y = x(undefined);
|
|
|
|
|
|
|
|
y.length; // should not error
|
|
|
|
|
|
|
|
|
|
|
|
//// [inheritedGenericCallSignature.js]
|
|
|
|
var x;
|
|
|
|
var y = x(undefined);
|
2014-08-16 00:49:09 +02:00
|
|
|
y.length; // should not error
|