19 lines
No EOL
611 B
Text
19 lines
No EOL
611 B
Text
tests/cases/compiler/scopeTests.ts(2,7): error TS2415: Class 'D' incorrectly extends base class 'C'.
|
|
Property 'v' is private in type 'C' but not in type 'D'.
|
|
|
|
|
|
==== tests/cases/compiler/scopeTests.ts (1 errors) ====
|
|
class C { private v; public p; static s; }
|
|
class D extends C {
|
|
~
|
|
!!! error TS2415: Class 'D' incorrectly extends base class 'C'.
|
|
!!! error TS2415: Property 'v' is private in type 'C' but not in type 'D'.
|
|
public v: number;
|
|
public p: number
|
|
constructor() {
|
|
super()
|
|
this.v = 1;
|
|
this.p = 1;
|
|
C.s = 1;
|
|
}
|
|
} |