mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
73 lines
2.0 KiB
Plaintext
73 lines
2.0 KiB
Plaintext
//// [tests/cases/conformance/types/members/duplicateStringIndexers.ts] ////
|
|
|
|
=== duplicateStringIndexers.ts ===
|
|
// it is an error to have duplicate index signatures of the same kind in a type
|
|
|
|
namespace test {
|
|
>test : Symbol(test, Decl(duplicateStringIndexers.ts, 0, 0))
|
|
|
|
interface Number {
|
|
>Number : Symbol(Number, Decl(duplicateStringIndexers.ts, 2, 16))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 4, 9))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 5, 9))
|
|
}
|
|
|
|
interface String {
|
|
>String : Symbol(String, Decl(duplicateStringIndexers.ts, 6, 5))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 9, 9))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 10, 9))
|
|
}
|
|
|
|
interface Array<T> {
|
|
>Array : Symbol(Array, Decl(duplicateStringIndexers.ts, 11, 5))
|
|
>T : Symbol(T, Decl(duplicateStringIndexers.ts, 13, 20))
|
|
|
|
[x: string]: T;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 14, 9))
|
|
>T : Symbol(T, Decl(duplicateStringIndexers.ts, 13, 20))
|
|
|
|
[x: string]: T;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 15, 9))
|
|
>T : Symbol(T, Decl(duplicateStringIndexers.ts, 13, 20))
|
|
}
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(duplicateStringIndexers.ts, 16, 5))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 19, 9))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 20, 9))
|
|
}
|
|
|
|
interface I {
|
|
>I : Symbol(I, Decl(duplicateStringIndexers.ts, 21, 5))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 24, 9))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 25, 9))
|
|
}
|
|
|
|
var a: {
|
|
>a : Symbol(a, Decl(duplicateStringIndexers.ts, 28, 7))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 29, 9))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(duplicateStringIndexers.ts, 30, 9))
|
|
}
|
|
}
|
|
|