20 lines
No EOL
542 B
Text
20 lines
No EOL
542 B
Text
==== tests/cases/conformance/classes/indexMemberDeclarations/staticIndexers.ts (3 errors) ====
|
|
// static indexers not allowed
|
|
|
|
class C {
|
|
static [x: string]: string;
|
|
~~~~~~
|
|
!!! Modifiers not permitted on index signature members.
|
|
}
|
|
|
|
class D {
|
|
static [x: number]: string;
|
|
~~~~~~
|
|
!!! Modifiers not permitted on index signature members.
|
|
}
|
|
|
|
class E<T> {
|
|
static [x: string]: T;
|
|
~~~~~~
|
|
!!! Modifiers not permitted on index signature members.
|
|
} |