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

23 lines
1.2 KiB
Diff

--- old.parameterPropertyInConstructor2.errors.txt
+++ new.parameterPropertyInConstructor2.errors.txt
@@= skipped -0, +0 lines =@@
parameterPropertyInConstructor2.ts(3,5): error TS2394: This overload signature is not compatible with its implementation signature.
parameterPropertyInConstructor2.ts(3,17): error TS2369: A parameter property is only allowed in a constructor implementation.
+parameterPropertyInConstructor2.ts(3,24): error TS2300: Duplicate identifier 'names'.
parameterPropertyInConstructor2.ts(4,24): error TS2300: Duplicate identifier 'names'.
-==== parameterPropertyInConstructor2.ts (3 errors) ====
+==== parameterPropertyInConstructor2.ts (4 errors) ====
namespace mod {
class Customers {
constructor(public names: string);
@@= skipped -11, +12 lines =@@
!!! related TS2750 parameterPropertyInConstructor2.ts:4:5: The implementation signature is declared here.
~~~~~~~~~~~~~~~~~~~~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
+ ~~~~~
+!!! error TS2300: Duplicate identifier 'names'.
constructor(public names: string, public ages: number) {
~~~~~
!!! error TS2300: Duplicate identifier 'names'.