From 322c70fd8259b2beef001e1a346fc75ab070dbea Mon Sep 17 00:00:00 2001 From: Armando Aguirre Date: Sat, 13 Mar 2021 01:01:04 -0800 Subject: [PATCH] Fixed reporting error for type arity (#43111) --- src/compiler/checker.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 7421288396b..625cfabd99b 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -17182,6 +17182,14 @@ namespace ts { } break; } + case Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code: { + secondaryRootErrors.unshift([Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, args[0], args[1]]); + break; + } + case Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code: { + secondaryRootErrors.unshift([Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, args[0], args[1], args[2]]); + break; + } default: return Debug.fail(`Unhandled Diagnostic: ${msg.code}`); }