TypeScript/tests/baselines/reference/overloadOnConstInheritance2.js

12 lines
305 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [overloadOnConstInheritance2.ts]
interface Base {
addEventListener(x: string): any;
addEventListener(x: 'foo'): string;
}
interface Deriver extends Base {
addEventListener(x: 'bar'): string; // shouldn't need to redeclare the string overload
}
//// [overloadOnConstInheritance2.js]