TypeScript/tests/baselines/reference/accessorParameterAccessibilityModifier.errors.txt

20 lines
1.2 KiB
Plaintext
Raw Normal View History

tests/cases/compiler/accessorParameterAccessibilityModifier.ts(3,9): error TS2369: A parameter property is only allowed in a constructor implementation.
tests/cases/compiler/accessorParameterAccessibilityModifier.ts(3,11): error TS2369: A parameter property is only allowed in a constructor implementation.
tests/cases/compiler/accessorParameterAccessibilityModifier.ts(4,16): error TS2369: A parameter property is only allowed in a constructor implementation.
tests/cases/compiler/accessorParameterAccessibilityModifier.ts(4,18): error TS2369: A parameter property is only allowed in a constructor implementation.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/accessorParameterAccessibilityModifier.ts (4 errors) ====
class C {
set X(public v) { }
~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
2014-07-13 01:04:16 +02:00
~~~~~~~~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
2014-07-13 01:04:16 +02:00
static set X(public v2) { }
~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
2014-07-13 01:04:16 +02:00
~~~~~~~~~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
2014-07-13 01:04:16 +02:00
}