mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
670 B
Plaintext
25 lines
670 B
Plaintext
c.ts(4,14): error TS2415: Class 'D' incorrectly extends base class 'C'.
|
|
Types have separate declarations of a private property '[x]'.
|
|
|
|
|
|
==== a.ts (0 errors) ====
|
|
export const x = Symbol();
|
|
|
|
==== b.ts (0 errors) ====
|
|
import { x } from "./a";
|
|
|
|
export class C {
|
|
private [x]: number = 1;
|
|
}
|
|
|
|
==== c.ts (1 errors) ====
|
|
import { x } from "./a";
|
|
import { C } from "./b";
|
|
|
|
export class D extends C {
|
|
~
|
|
!!! error TS2415: Class 'D' incorrectly extends base class 'C'.
|
|
!!! error TS2415: Types have separate declarations of a private property '[x]'.
|
|
private [x]: 12 = 12;
|
|
}
|
|
|