mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
481 B
Plaintext
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.
|
|
}
|
|
|