Files
tsgo/testdata/baselines/reference/submodule/conformance/instanceMemberWithComputedPropertyName2.errors.txt

13 lines
481 B
Plaintext

instanceMemberWithComputedPropertyName2.ts(5,5): error TS2564: Property '[x]' has no initializer and is not definitely assigned in the constructor.
==== instanceMemberWithComputedPropertyName2.ts (1 errors) ====
// https://github.com/microsoft/TypeScript/issues/33857
"use strict";
const x = 1;
class C {
[x]: string;
~~~
!!! error TS2564: Property '[x]' has no initializer and is not definitely assigned in the constructor.
}