mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
706 B
TypeScript
27 lines
706 B
TypeScript
//// [tests/cases/conformance/es6/computedProperties/computedPropertyNames2_ES6.ts] ////
|
|
|
|
//// [computedPropertyNames2_ES6.ts]
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName]() { }
|
|
static [methodName]() { }
|
|
get [accessorName]() { }
|
|
set [accessorName](v) { }
|
|
static get [accessorName]() { }
|
|
static set [accessorName](v) { }
|
|
}
|
|
|
|
//// [computedPropertyNames2_ES6.js]
|
|
"use strict";
|
|
var methodName = "method";
|
|
var accessorName = "accessor";
|
|
class C {
|
|
[methodName]() { }
|
|
static [methodName]() { }
|
|
get [accessorName]() { }
|
|
set [accessorName](v) { }
|
|
static get [accessorName]() { }
|
|
static set [accessorName](v) { }
|
|
}
|