TypeScript/tests/baselines/reference/overloadOnConstInheritance1.js

13 lines
292 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [overloadOnConstInheritance1.ts]
interface Base {
addEventListener(x: string): any;
addEventListener(x: 'foo'): string;
}
interface Deriver extends Base {
addEventListener(x: string): any;
addEventListener(x: 'bar'): string;
}
//// [overloadOnConstInheritance1.js]