mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +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
|
|
} |