mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
17 lines
312 B
TypeScript
17 lines
312 B
TypeScript
// @target: es6
|
|
var s: string;
|
|
var n: number;
|
|
var a: any;
|
|
class C {
|
|
[s]: number;
|
|
[n] = n;
|
|
static [s + s]: string;
|
|
[s + n] = 2;
|
|
[+s]: typeof s;
|
|
static [""]: number;
|
|
[0]: number;
|
|
[a]: number;
|
|
static [<any>true]: number;
|
|
[`hello bye`] = 0;
|
|
static [`hello ${a} bye`] = 0
|
|
} |