mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
10 lines
254 B
TypeScript
10 lines
254 B
TypeScript
// @strict: true
|
|
class X {
|
|
static [index: string]: string;
|
|
static x = 12; // Should error, incompatible with index signature
|
|
}
|
|
class Y {
|
|
static [index: string]: string;
|
|
static foo() {} // should error, incompatible with index signature
|
|
}
|