TypeScript/tests/baselines/reference/overloadOnConstInheritance3.js

13 lines
309 B
JavaScript
Raw Normal View History

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