swc/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES6.ts

17 lines
276 B
TypeScript

// @target: es6
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`]() { }
}