2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames9_ES6.ts]
|
2015-01-12 23:04:34 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames9_ES6.js]
|
2015-03-09 02:23:23 +01:00
|
|
|
function f(x) {
|
|
|
|
}
|
2015-01-12 23:04:34 +01:00
|
|
|
var v = {
|
|
|
|
[f("")]: 0,
|
|
|
|
[f(0)]: 0,
|
|
|
|
[f(true)]: 0
|
|
|
|
};
|