mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
17 lines
276 B
TypeScript
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`]() { }
|
||
|
}
|