mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
441 B
TypeScript
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
|
|
};
|