36 lines
641 B
Text
36 lines
641 B
Text
|
=== tests/cases/compiler/baseTypeAfterDerivedType.ts ===
|
||
|
interface Derived extends Base {
|
||
|
>Derived : Derived
|
||
|
>Base : Base
|
||
|
|
||
|
method(...args: any[]): void;
|
||
|
>method : (...args: any[]) => void
|
||
|
>args : any[]
|
||
|
}
|
||
|
|
||
|
interface Base {
|
||
|
>Base : Base
|
||
|
|
||
|
method(...args: any[]): void;
|
||
|
>method : (...args: any[]) => void
|
||
|
>args : any[]
|
||
|
}
|
||
|
|
||
|
class Derived2 implements Base2 {
|
||
|
>Derived2 : Derived2
|
||
|
>Base2 : Base2
|
||
|
|
||
|
method(...args: any[]): void { }
|
||
|
>method : (...args: any[]) => void
|
||
|
>args : any[]
|
||
|
}
|
||
|
|
||
|
interface Base2 {
|
||
|
>Base2 : Base2
|
||
|
|
||
|
method(...args: any[]): void;
|
||
|
>method : (...args: any[]) => void
|
||
|
>args : any[]
|
||
|
}
|
||
|
|