12 lines
315 B
Text
12 lines
315 B
Text
|
==== 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.
|
||
|
}
|