Do it correctly.
This commit is contained in:
parent
31d8cbe895
commit
dac00d97b7
1 changed files with 1 additions and 1 deletions
|
@ -15473,7 +15473,7 @@ namespace ts {
|
|||
// With noImplicitThis, functions may not reference 'this' if it has type 'any'
|
||||
error(
|
||||
node,
|
||||
capturedByArrowFunction ?
|
||||
capturedByArrowFunction && container.kind === SyntaxKind.SourceFile ?
|
||||
Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this_which_implicitly_has_type_any :
|
||||
Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue