TypeScript/tests/baselines/reference/indexerSignatureWithRestParam.errors.txt

12 lines
315 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/indexerSignatureWithRestParam.ts (2 errors) ====
interface I {
[...x]: string;
~
!!! An index signature cannot have a rest parameter.
}
class C {
[...x]: string
~
!!! An index signature cannot have a rest parameter.
}