Add a test to make sure types are being checked for privates

This commit is contained in:
Jason Freeman
2014-09-11 18:15:57 -07:00
parent ba574725c2
commit cb38c9569a
5 changed files with 70 additions and 38 deletions

View File

@@ -4340,7 +4340,7 @@ module ts {
var widenedType = getWidenedType(exprType, /*supressNoImplicitAnyErrors*/ true);
if (!(isTypeAssignableTo(targetType, widenedType))) {
checkTypeAssignableTo(exprType, targetType, node, Diagnostics.Neither_type_0_nor_type_1_is_assignable_to_the_other_Colon, Diagnostics.Neither_type_0_nor_type_1_is_assignable_to_the_other);
}
}
}
return targetType;
}