35 lines
487 B
TypeScript
35 lines
487 B
TypeScript
//// [hidingCallSignatures.ts]
|
|
interface C {
|
|
new (a: string): string;
|
|
}
|
|
|
|
interface D extends C {
|
|
(a: string): number; // Should be ok
|
|
}
|
|
|
|
interface E {
|
|
(a: string): {};
|
|
}
|
|
|
|
interface F extends E {
|
|
(a: string): string;
|
|
}
|
|
|
|
var d: D;
|
|
d(""); // number
|
|
new d(""); // should be string
|
|
|
|
var f: F;
|
|
f(""); // string
|
|
|
|
var e: E;
|
|
e(""); // {}
|
|
|
|
//// [hidingCallSignatures.js]
|
|
var d;
|
|
d(""); // number
|
|
new d(""); // should be string
|
|
var f;
|
|
f(""); // string
|
|
var e;
|
|
e(""); // {}
|