We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0751699 commit ae5db9cCopy full SHA for ae5db9c
src/compiler/checker.ts
@@ -2196,7 +2196,7 @@ namespace ts {
2196
}
2197
return undefined;
2198
2199
-
+
2200
if (propertyWithInvalidInitializer && !(getEmitScriptTarget(compilerOptions) === ScriptTarget.ESNext && useDefineForClassFields)) {
2201
// We have a match, but the reference occurred within a property initializer and the identifier also binds
2202
// to a local variable in the constructor where the code will be emitted. Note that this is actually allowed
0 commit comments