mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
525 B
Plaintext
13 lines
525 B
Plaintext
accessorWithInitializer.ts(2,9): error TS1052: A 'set' accessor parameter cannot have an initializer.
|
|
accessorWithInitializer.ts(3,16): error TS1052: A 'set' accessor parameter cannot have an initializer.
|
|
|
|
|
|
==== accessorWithInitializer.ts (2 errors) ====
|
|
class C {
|
|
set X(v = 0) { }
|
|
~
|
|
!!! error TS1052: A 'set' accessor parameter cannot have an initializer.
|
|
static set X(v2 = 0) { }
|
|
~
|
|
!!! error TS1052: A 'set' accessor parameter cannot have an initializer.
|
|
} |