File: computedPropertyNames9_ES5.js

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (20 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//// [computedPropertyNames9_ES5.ts]
function f(s: string): string;
function f(n: number): number;
function f<T>(x: T): T;
function f(x): any { }

var v = {
    [f("")]: 0,
    [f(0)]: 0,
    [f(true)]: 0
}

//// [computedPropertyNames9_ES5.js]
var _a;
function f(x) { }
var v = (_a = {},
    _a[f("")] = 0,
    _a[f(0)] = 0,
    _a[f(true)] = 0,
    _a);