swc/crates/swc_ecma_parser/tests/tsc/staticIndexers.ts

13 lines
163 B
TypeScript
Raw Normal View History

// static indexers not allowed
class C {
static [x: string]: string;
}
class D {
static [x: number]: string;
}
class E<T> {
static [x: string]: T;
}