mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +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
|
||
|
}
|