mirror of
https://github.com/swc-project/swc.git
synced 2024-12-03 00:54:25 +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`]() { }
|
||
|
}
|