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