14 lines
626 B
Plaintext
14 lines
626 B
Plaintext
==== 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.
|
|
~~~~~~~~
|
|
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
|
|
static set X(public v2) { }
|
|
~
|
|
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
|
|
~~~~~~~~~
|
|
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
|
|
} |