From ae5db9c99ecfe45168395b2b2367eb5f098e506b Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Wed, 9 Mar 2022 20:06:41 -0800 Subject: [PATCH] Fix lint --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c89764f35c42e..8bd6650c8a65d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -2196,7 +2196,7 @@ namespace ts { } return undefined; } - + if (propertyWithInvalidInitializer && !(getEmitScriptTarget(compilerOptions) === ScriptTarget.ESNext && useDefineForClassFields)) { // We have a match, but the reference occurred within a property initializer and the identifier also binds // to a local variable in the constructor where the code will be emitted. Note that this is actually allowed