mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
706 B
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
|
|
~~~
|