mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
17 lines
276 B
TypeScript
17 lines
276 B
TypeScript
// @target: es5
|
|
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`]() { }
|
|
} |