22 lines
378 B
TypeScript
22 lines
378 B
TypeScript
//// [computedPropertyNames14_ES6.ts]
|
|
var b: boolean;
|
|
class C {
|
|
[b]() {}
|
|
static [true]() { }
|
|
[[]]() { }
|
|
static [{}]() { }
|
|
[undefined]() { }
|
|
static [null]() { }
|
|
}
|
|
|
|
//// [computedPropertyNames14_ES6.js]
|
|
var b;
|
|
class C {
|
|
[b]() { }
|
|
static [true]() { }
|
|
[[]]() { }
|
|
static [{}]() { }
|
|
[undefined]() { }
|
|
static [null]() { }
|
|
}
|