TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames9_ES5.ts
2015-02-03 17:43:31 -08:00

11 lines
195 B
TypeScript

// @target: es5
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
}