TypeScript/tests/baselines/reference/parserIndexSignature4.errors.txt
2014-09-11 16:11:08 -07:00

8 lines
349 B
Plaintext

==== tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts (2 errors) ====
interface I {
[a = 0]
~
!!! error TS1020: An index signature parameter cannot have an initializer.
~~~~~
!!! error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
}