Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/reassignStaticProp.errors.txt.diff

18 lines
706 B
Diff

--- old.reassignStaticProp.errors.txt
+++ new.reassignStaticProp.errors.txt
@@= skipped -0, +0 lines =@@
+reassignStaticProp.ts(3,12): error TS2300: Duplicate identifier 'bar'.
reassignStaticProp.ts(5,12): error TS2300: Duplicate identifier 'bar'.
reassignStaticProp.ts(5,12): error TS2717: Subsequent property declarations must have the same type. Property 'bar' must be of type 'number', but here has type 'string'.
-==== reassignStaticProp.ts (2 errors) ====
+==== reassignStaticProp.ts (3 errors) ====
class foo {
static bar = 1;
+ ~~~
+!!! error TS2300: Duplicate identifier 'bar'.
static bar:string; // errror - duplicate id
~~~