5ae4b5d715
* Properly preserve names of properties with numeric literal strings * Accept new baselines
30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
=== tests/cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES6.ts ===
|
|
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x];
|
|
>(x) => ({ "1": "one", "2": "two" } as { [key: string]: string })[x] : (x: any) => string
|
|
>x : any
|
|
>({ "1": "one", "2": "two" } as { [key: string]: string })[x] : string
|
|
>({ "1": "one", "2": "two" } as { [key: string]: string }) : { [key: string]: string; }
|
|
>{ "1": "one", "2": "two" } as { [key: string]: string } : { [key: string]: string; }
|
|
>{ "1": "one", "2": "two" } : { "1": string; "2": string; }
|
|
>"1" : string
|
|
>"one" : "one"
|
|
>"2" : string
|
|
>"two" : "two"
|
|
>key : string
|
|
>x : any
|
|
|
|
(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x;
|
|
>(x) => ({ "1": "one", "2": "two" } as { [key: string]: string }).x : (x: any) => string
|
|
>x : any
|
|
>({ "1": "one", "2": "two" } as { [key: string]: string }).x : string
|
|
>({ "1": "one", "2": "two" } as { [key: string]: string }) : { [key: string]: string; }
|
|
>{ "1": "one", "2": "two" } as { [key: string]: string } : { [key: string]: string; }
|
|
>{ "1": "one", "2": "two" } : { "1": string; "2": string; }
|
|
>"1" : string
|
|
>"one" : "one"
|
|
>"2" : string
|
|
>"two" : "two"
|
|
>key : string
|
|
>x : string
|
|
|