mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +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;
|
|
} |