2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/indexerSignatureWithRestParam.ts(2,9): error TS1017: An index signature cannot have a rest parameter.
|
|
|
|
tests/cases/compiler/indexerSignatureWithRestParam.ts(6,9): error TS1017: An index signature cannot have a rest parameter.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/indexerSignatureWithRestParam.ts (2 errors) ====
|
|
|
|
interface I {
|
|
|
|
[...x]: string;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1017: An index signature cannot have a rest parameter.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class C {
|
|
|
|
[...x]: string
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1017: An index signature cannot have a rest parameter.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|