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