21 lines
478 B
TypeScript
21 lines
478 B
TypeScript
//// [computedPropertyNames17_ES6.ts]
|
|
var b: boolean;
|
|
class C {
|
|
get [b]() { return 0;}
|
|
static set [true](v) { }
|
|
get [[]]() { return 0; }
|
|
set [{}](v) { }
|
|
static get [undefined]() { return 0; }
|
|
set [null](v) { }
|
|
}
|
|
|
|
//// [computedPropertyNames17_ES6.js]
|
|
var b;
|
|
class C {
|
|
get [b]() { return 0; }
|
|
static set [true](v) { }
|
|
get [[]]() { return 0; }
|
|
set [{}](v) { }
|
|
static get [undefined]() { return 0; }
|
|
set [null](v) { }
|
|
}
|