mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
507 B
TypeScript
11 lines
507 B
TypeScript
//// [tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES6.ts] ////
|
|
|
|
//// [emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES6.ts]
|
|
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x];
|
|
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x;
|
|
|
|
//// [emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES6.js]
|
|
"use strict";
|
|
(x) => ({ "1": "one", "2": "two" }[x]);
|
|
(x) => ({ "1": "one", "2": "two" }.x);
|