mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
917 B
Diff
17 lines
917 B
Diff
--- old.privateNamesUnique-3.errors.txt
|
|
+++ new.privateNamesUnique-3.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
+privateNamesUnique-3.ts(2,5): error TS2804: Duplicate identifier '#foo'. Static and instance elements cannot share the same private name.
|
|
privateNamesUnique-3.ts(3,12): error TS2804: Duplicate identifier '#foo'. Static and instance elements cannot share the same private name.
|
|
privateNamesUnique-3.ts(11,11): error TS2339: Property '#foo' does not exist on type 'B'.
|
|
|
|
|
|
-==== privateNamesUnique-3.ts (2 errors) ====
|
|
+==== privateNamesUnique-3.ts (3 errors) ====
|
|
class A {
|
|
#foo = 1;
|
|
+ ~~~~
|
|
+!!! error TS2804: Duplicate identifier '#foo'. Static and instance elements cannot share the same private name.
|
|
static #foo = true; // error (duplicate)
|
|
~~~~
|
|
!!! error TS2804: Duplicate identifier '#foo'. Static and instance elements cannot share the same private name.
|