mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
17 lines
293 B
TypeScript
17 lines
293 B
TypeScript
// @target: es5
|
|
var s: string;
|
|
var n: number;
|
|
var a: any;
|
|
class C {
|
|
[s]() {}
|
|
[n]() { }
|
|
static [s + s]() { }
|
|
[s + n]() { }
|
|
[+s]() { }
|
|
static [""]() { }
|
|
[0]() { }
|
|
[a]() { }
|
|
static [<any>true]() { }
|
|
[`hello bye`]() { }
|
|
static [`hello ${a} bye`]() { }
|
|
} |