remove unneeded cast

This commit is contained in:
Wesley Wigham 2015-12-03 14:18:44 -08:00
parent cfe2cc3608
commit d51dd84f6c

View File

@ -5573,8 +5573,8 @@ namespace ts {
}
if (source.typePredicate && target.typePredicate) {
const sourcePredicate = source.typePredicate as IdentifierTypePredicate;
const targetPredicate = target.typePredicate as IdentifierTypePredicate;
const sourcePredicate = source.typePredicate;
const targetPredicate = target.typePredicate;
if (source.typePredicate.kind !== target.typePredicate.kind) {
if (reportErrors) {
reportError(Diagnostics.A_this_based_type_guard_is_not_assignable_to_a_parameter_based_type_guard);