15 lines
406 B
Text
15 lines
406 B
Text
|
==== tests/cases/compiler/scopeTests.ts (1 errors) ====
|
||
|
class C { private v; public p; static s; }
|
||
|
class D extends C {
|
||
|
~
|
||
|
!!! Class 'D' incorrectly extends base class 'C':
|
||
|
!!! Private property 'v' cannot be reimplemented.
|
||
|
public v: number;
|
||
|
public p: number
|
||
|
constructor() {
|
||
|
super()
|
||
|
this.v = 1;
|
||
|
this.p = 1;
|
||
|
C.s = 1;
|
||
|
}
|
||
|
}
|