mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
486 B
TypeScript
25 lines
486 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames14_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames14_ES6.ts]
|
|
var b: boolean;
|
|
class C {
|
|
[b]() {}
|
|
static [true]() { }
|
|
[[]]() { }
|
|
static [{}]() { }
|
|
[undefined]() { }
|
|
static [null]() { }
|
|
}
|
|
|
|
//// [computedPropertyNames14_ES6.js]
|
|
"use strict";
|
|
var b;
|
|
class C {
|
|
[b]() { }
|
|
static [true]() { }
|
|
[[]]() { }
|
|
static [{}]() { }
|
|
[undefined]() { }
|
|
static [null]() { }
|
|
}
|