1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
=== tests/cases/conformance/interfaces/interfacesExtendingClasses/implementingAnInterfaceExtendingClassWithProtecteds.ts ===
class Foo {
>Foo : Foo
protected x: string;
>x : string
}
interface I extends Foo {
y: number;
>y : number
}
class Bar implements I { // error
>Bar : Bar
}
class Bar2 implements I { // error
>Bar2 : Bar2
y: number;
>y : number
}
class Bar3 implements I { // error
>Bar3 : Bar3
x: string;
>x : string
y: number;
>y : number
}
class Bar4 implements I { // error
>Bar4 : Bar4
protected x: string;
>x : string
y: number;
>y : number
}
class Bar5 extends Foo implements I { // error
>Bar5 : Bar5
>Foo : Foo
}
class Bar6 extends Foo implements I { // error
>Bar6 : Bar6
>Foo : Foo
protected y: number;
>y : number
}
class Bar7 extends Foo implements I {
>Bar7 : Bar7
>Foo : Foo
y: number;
>y : number
}
class Bar8 extends Foo implements I {
>Bar8 : Bar8
>Foo : Foo
x: string;
>x : string
y: number;
>y : number
}
|