mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
17 lines
263 B
TypeScript
17 lines
263 B
TypeScript
class Base {
|
|
[x: string]: Object;
|
|
}
|
|
|
|
// ok, use assignment compatibility
|
|
class Derived extends Base {
|
|
[x: string]: any;
|
|
}
|
|
|
|
class Base2 {
|
|
[x: number]: Object;
|
|
}
|
|
|
|
// ok, use assignment compatibility
|
|
class Derived2 extends Base2 {
|
|
[x: number]: any;
|
|
} |