mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
397 B
TypeScript
27 lines
397 B
TypeScript
//// [tests/cases/conformance/classes/indexMemberDeclarations/staticIndexers.ts] ////
|
|
|
|
//// [staticIndexers.ts]
|
|
// static indexers not allowed
|
|
|
|
class C {
|
|
static [x: string]: string;
|
|
}
|
|
|
|
class D {
|
|
static [x: number]: string;
|
|
}
|
|
|
|
class E<T> {
|
|
static [x: string]: T;
|
|
}
|
|
|
|
//// [staticIndexers.js]
|
|
"use strict";
|
|
// static indexers not allowed
|
|
class C {
|
|
}
|
|
class D {
|
|
}
|
|
class E {
|
|
}
|