mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
316 B
TypeScript
17 lines
316 B
TypeScript
//// [tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName10.ts] ////
|
|
|
|
//// [parserComputedPropertyName10.ts]
|
|
class C {
|
|
[e] = 1
|
|
}
|
|
|
|
//// [parserComputedPropertyName10.js]
|
|
"use strict";
|
|
var _a;
|
|
class C {
|
|
constructor() {
|
|
this[_a] = 1;
|
|
}
|
|
}
|
|
_a = e;
|