2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames10_ES6.ts]
|
2015-01-14 01:10:24 +01:00
|
|
|
var s: string;
|
|
|
|
var n: number;
|
|
|
|
var a: any;
|
|
|
|
var v = {
|
|
|
|
[s]() { },
|
|
|
|
[n]() { },
|
|
|
|
[s + s]() { },
|
|
|
|
[s + n]() { },
|
|
|
|
[+s]() { },
|
|
|
|
[""]() { },
|
|
|
|
[0]() { },
|
|
|
|
[a]() { },
|
|
|
|
[<any>true]() { },
|
|
|
|
[`hello bye`]() { },
|
|
|
|
[`hello ${a} bye`]() { }
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames10_ES6.js]
|
2015-01-14 01:10:24 +01:00
|
|
|
var s;
|
|
|
|
var n;
|
|
|
|
var a;
|
|
|
|
var v = {
|
2015-02-07 03:45:09 +01:00
|
|
|
[s]() { },
|
|
|
|
[n]() { },
|
|
|
|
[s + s]() { },
|
|
|
|
[s + n]() { },
|
|
|
|
[+s]() { },
|
|
|
|
[""]() { },
|
|
|
|
[0]() { },
|
|
|
|
[a]() { },
|
|
|
|
[true]() { },
|
|
|
|
[`hello bye`]() { },
|
|
|
|
[`hello ${a} bye`]() { }
|
2015-01-14 01:10:24 +01:00
|
|
|
};
|