12 lines
309 B
TypeScript
12 lines
309 B
TypeScript
//// [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]
|