TypeScript/tests/cases/compiler/overloadOnConstInheritance1.ts

9 lines
218 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: string): any;
addEventListener(x: 'bar'): string;
}