1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
=== tests/cases/conformance/es6/Symbols/symbolProperty60.ts ===
// https://github.com/Microsoft/TypeScript/issues/20146
interface I1 {
[Symbol.toStringTag]: string;
>[Symbol.toStringTag] : string
>Symbol.toStringTag : symbol
>Symbol : SymbolConstructor
>toStringTag : symbol
[key: string]: number;
>key : string
}
interface I2 {
[Symbol.toStringTag]: string;
>[Symbol.toStringTag] : string
>Symbol.toStringTag : symbol
>Symbol : SymbolConstructor
>toStringTag : symbol
[key: number]: boolean;
>key : number
}
declare const mySymbol: unique symbol;
>mySymbol : unique symbol
interface I3 {
[mySymbol]: string;
>[mySymbol] : string
>mySymbol : unique symbol
[key: string]: number;
>key : string
}
interface I4 {
[mySymbol]: string;
>[mySymbol] : string
>mySymbol : unique symbol
[key: number]: boolean;
>key : number
}
|