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

41 lines
1.6 KiB
Diff

--- old.dynamicNamesErrors.errors.txt
+++ new.dynamicNamesErrors.errors.txt
@@= skipped -0, +0 lines =@@
+dynamicNamesErrors.ts(5,5): error TS2300: Duplicate identifier '1'.
+dynamicNamesErrors.ts(6,5): error TS2300: Duplicate identifier '1'.
+dynamicNamesErrors.ts(18,5): error TS2300: Duplicate identifier '[c0]'.
+dynamicNamesErrors.ts(19,5): error TS2300: Duplicate identifier '[c0]'.
dynamicNamesErrors.ts(19,5): error TS2717: Subsequent property declarations must have the same type. Property '[c1]' must be of type 'number', but here has type 'string'.
dynamicNamesErrors.ts(24,1): error TS2322: Type 'T2' is not assignable to type 'T1'.
Types of property '[c0]' are incompatible.
@@= skipped -7, +11 lines =@@
dynamicNamesErrors.ts(43,5): error TS2564: Property '[x]' has no initializer and is not definitely assigned in the constructor.
-==== dynamicNamesErrors.ts (4 errors) ====
+==== dynamicNamesErrors.ts (8 errors) ====
const c0 = "1";
const c1 = 1;
interface T0 {
[c0]: number;
+ ~~~~
+!!! error TS2300: Duplicate identifier '1'.
1: number;
+ ~
+!!! error TS2300: Duplicate identifier '1'.
}
interface T1 {
@@= skipped -19, +23 lines =@@
interface T3 {
[c0]: number;
+ ~~~~
+!!! error TS2300: Duplicate identifier '[c0]'.
[c1]: string;
+ ~~~~
+!!! error TS2300: Duplicate identifier '[c0]'.
~~~~
!!! error TS2717: Subsequent property declarations must have the same type. Property '[c1]' must be of type 'number', but here has type 'string'.
!!! related TS6203 dynamicNamesErrors.ts:18:5: '[c1]' was also declared here.