TypeScript/tests/cases/compiler/overloadOnConstInheritance2.ts

8 lines
230 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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
}