26 lines
639 B
Text
26 lines
639 B
Text
|
=== tests/cases/compiler/overloadOnConstInheritance1.ts ===
|
||
|
interface Base {
|
||
|
>Base : Base
|
||
|
|
||
|
addEventListener(x: string): any;
|
||
|
>addEventListener : { (x: string): any; (x: 'foo'): string; }
|
||
|
>x : string
|
||
|
|
||
|
addEventListener(x: 'foo'): string;
|
||
|
>addEventListener : { (x: string): any; (x: 'foo'): string; }
|
||
|
>x : 'foo'
|
||
|
}
|
||
|
interface Deriver extends Base {
|
||
|
>Deriver : Deriver
|
||
|
>Base : Base
|
||
|
|
||
|
addEventListener(x: string): any;
|
||
|
>addEventListener : { (x: string): any; (x: 'bar'): string; }
|
||
|
>x : string
|
||
|
|
||
|
addEventListener(x: 'bar'): string;
|
||
|
>addEventListener : { (x: string): any; (x: 'bar'): string; }
|
||
|
>x : 'bar'
|
||
|
}
|
||
|
|