mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
657 B
TypeScript
28 lines
657 B
TypeScript
//// [tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberWithComputedPropertyName2.ts] ////
|
|
|
|
//// [instanceMemberWithComputedPropertyName2.ts]
|
|
// https://github.com/microsoft/TypeScript/issues/33857
|
|
"use strict";
|
|
const x = 1;
|
|
class C {
|
|
[x]: string;
|
|
}
|
|
|
|
|
|
//// [instanceMemberWithComputedPropertyName2.js]
|
|
// https://github.com/microsoft/TypeScript/issues/33857
|
|
"use strict";
|
|
var _a;
|
|
const x = 1;
|
|
class C {
|
|
constructor() {
|
|
Object.defineProperty(this, _a, {
|
|
enumerable: true,
|
|
configurable: true,
|
|
writable: true,
|
|
value: void 0
|
|
});
|
|
}
|
|
}
|
|
_a = x;
|