Print the correct type in the top level chain as the message indicates (#21127)

This commit is contained in:
Wesley Wigham
2018-01-10 11:41:14 -08:00
committed by GitHub
parent ef5b171be2
commit ee87cf409b
33 changed files with 165 additions and 160 deletions

View File

@@ -23005,7 +23005,7 @@ namespace ts {
Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,
unescapeLeadingUnderscores(declaredProp.escapedName),
typeToString(typeWithThis),
typeToString(getTypeOfSymbol(baseProp))
typeToString(baseWithThis)
);
if (!checkTypeAssignableTo(getTypeOfSymbol(prop), getTypeOfSymbol(baseProp), member.name || member, /*message*/ undefined, rootChain)) {
issuedMemberError = true;