Files
tsgo/testdata/baselines/reference/submodule/conformance/computedPropertyNames9_ES6.js

23 lines
441 B
TypeScript

//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES6.ts] ////
//// [computedPropertyNames9_ES6.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_ES6.js]
"use strict";
function f(x) { }
var v = {
[f("")]: 0,
[f(0)]: 0,
[f(true)]: 0
};