mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
15 lines
237 B
TypeScript
15 lines
237 B
TypeScript
// indexers should behave like other members when merging interface declarations
|
|
|
|
interface A {
|
|
[x: number]: string;
|
|
}
|
|
|
|
|
|
interface A {
|
|
[x: string]: { length: number };
|
|
}
|
|
|
|
var a: A;
|
|
var r = a[1];
|
|
var r2 = a['1'];
|
|
var r3 = a['hi']; |