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