mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
23 lines
411 B
TypeScript
23 lines
411 B
TypeScript
// @target: es2015
|
|
// https://github.com/Microsoft/TypeScript/issues/20146
|
|
interface I1 {
|
|
[Symbol.toStringTag]: string;
|
|
[key: string]: number;
|
|
}
|
|
|
|
interface I2 {
|
|
[Symbol.toStringTag]: string;
|
|
[key: number]: boolean;
|
|
}
|
|
|
|
declare const mySymbol: unique symbol;
|
|
|
|
interface I3 {
|
|
[mySymbol]: string;
|
|
[key: string]: number;
|
|
}
|
|
|
|
interface I4 {
|
|
[mySymbol]: string;
|
|
[key: number]: boolean;
|
|
} |