diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 509f8975eb..46c7481692 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -15474,8 +15474,8 @@ namespace ts { error( node, capturedByArrowFunction ? - Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation : - Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this_which_implicitly_has_type_any); + 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); } return type || anyType; }