mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
34 lines
592 B
TypeScript
34 lines
592 B
TypeScript
// it is an error to have duplicate index signatures of the same kind in a type
|
|
|
|
module test {
|
|
interface Number {
|
|
[x: string]: string;
|
|
[x: string]: string;
|
|
}
|
|
|
|
interface String {
|
|
[x: string]: string;
|
|
[x: string]: string;
|
|
}
|
|
|
|
interface Array<T> {
|
|
[x: string]: T;
|
|
[x: string]: T;
|
|
}
|
|
|
|
class C {
|
|
[x: string]: string;
|
|
[x: string]: string;
|
|
}
|
|
|
|
interface I {
|
|
[x: string]: string;
|
|
[x: string]: string;
|
|
}
|
|
|
|
var a: {
|
|
[x: string]: string;
|
|
[x: string]: string;
|
|
}
|
|
}
|