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