mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 19:22:32 +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`]() { }
|
||
|
}
|