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