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