4 lines
159 B
TypeScript
4 lines
159 B
TypeScript
|
// @target: es6
|
|||
|
|
|||
|
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x];
|
|||
|
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x;
|