Files
tsgo/testdata/baselines/reference/submoduleAccepted/conformance/constructorParameterProperties2.errors.txt.diff

51 lines
2.6 KiB
Diff

--- old.constructorParameterProperties2.errors.txt
+++ new.constructorParameterProperties2.errors.txt
@@= skipped -0, +0 lines =@@
constructorParameterProperties2.ts(2,5): error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
+constructorParameterProperties2.ts(10,5): error TS2300: Duplicate identifier 'y'.
constructorParameterProperties2.ts(10,5): error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
constructorParameterProperties2.ts(11,24): error TS2300: Duplicate identifier 'y'.
+constructorParameterProperties2.ts(18,5): error TS2300: Duplicate identifier 'y'.
constructorParameterProperties2.ts(18,5): error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
constructorParameterProperties2.ts(18,5): error TS2687: All declarations of 'y' must have identical modifiers.
constructorParameterProperties2.ts(19,25): error TS2300: Duplicate identifier 'y'.
constructorParameterProperties2.ts(19,25): error TS2687: All declarations of 'y' must have identical modifiers.
+constructorParameterProperties2.ts(26,5): error TS2300: Duplicate identifier 'y'.
constructorParameterProperties2.ts(26,5): error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
constructorParameterProperties2.ts(26,5): error TS2687: All declarations of 'y' must have identical modifiers.
constructorParameterProperties2.ts(27,27): error TS2300: Duplicate identifier 'y'.
constructorParameterProperties2.ts(27,27): error TS2687: All declarations of 'y' must have identical modifiers.
-==== constructorParameterProperties2.ts (11 errors) ====
+==== constructorParameterProperties2.ts (14 errors) ====
class C {
y: number;
~
@@= skipped -24, +27 lines =@@
class D {
y: number;
~
+!!! error TS2300: Duplicate identifier 'y'.
+ ~
!!! error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
constructor(public y: number) { } // error
~
@@= skipped -12, +14 lines =@@
class E {
y: number;
~
+!!! error TS2300: Duplicate identifier 'y'.
+ ~
!!! error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
~
!!! error TS2687: All declarations of 'y' must have identical modifiers.
@@= skipped -15, +17 lines =@@
class F {
y: number;
+ ~
+!!! error TS2300: Duplicate identifier 'y'.
~
!!! error TS2564: Property 'y' has no initializer and is not definitely assigned in the constructor.
~