33 lines
704 B
Text
33 lines
704 B
Text
=== tests/cases/compiler/interfacePropertiesWithSameName1.ts ===
|
|
interface Mover {
|
|
>Mover : Mover
|
|
|
|
move(): void;
|
|
>move : () => void
|
|
|
|
getStatus(): { speed: number; };
|
|
>getStatus : () => { speed: number; }
|
|
>speed : number
|
|
}
|
|
interface Shaker {
|
|
>Shaker : Shaker
|
|
|
|
shake(): void;
|
|
>shake : () => void
|
|
|
|
getStatus(): { frequency: number; };
|
|
>getStatus : () => { frequency: number; }
|
|
>frequency : number
|
|
}
|
|
|
|
interface MoverShaker extends Mover, Shaker {
|
|
>MoverShaker : MoverShaker
|
|
>Mover : Mover
|
|
>Shaker : Shaker
|
|
|
|
getStatus(): { speed: number; frequency: number; };
|
|
>getStatus : () => { speed: number; frequency: number; }
|
|
>speed : number
|
|
>frequency : number
|
|
}
|
|
|