14 lines
No EOL
594 B
Text
14 lines
No EOL
594 B
Text
tests/cases/compiler/accessorWithInitializer.ts(3,9): error TS1052: A 'set' accessor parameter cannot have an initializer.
|
|
tests/cases/compiler/accessorWithInitializer.ts(4,16): error TS1052: A 'set' accessor parameter cannot have an initializer.
|
|
|
|
|
|
==== tests/cases/compiler/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.
|
|
} |