8 lines
No EOL
321 B
Text
8 lines
No EOL
321 B
Text
==== tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts (2 errors) ====
|
|
interface I {
|
|
[a = 0]
|
|
~
|
|
!!! An index signature parameter cannot have an initializer.
|
|
~~~~~
|
|
!!! A parameter initializer is only allowed in a function or constructor implementation.
|
|
} |