mirror of
https://github.com/swc-project/swc.git
synced 2024-11-30 15:23:33 +03:00
17 lines
243 B
TypeScript
17 lines
243 B
TypeScript
// @target: es5
|
|
var s: string;
|
|
var n: number;
|
|
var a: any;
|
|
var v = {
|
|
[s]: 0,
|
|
[n]: n,
|
|
[s + s]: 1,
|
|
[s + n]: 2,
|
|
[+s]: s,
|
|
[""]: 0,
|
|
[0]: 0,
|
|
[a]: 1,
|
|
[<any>true]: 0,
|
|
[`hello bye`]: 0,
|
|
[`hello ${a} bye`]: 0
|
|
} |