fix some errors

This commit is contained in:
Yuichi Nukiyama 2016-08-21 11:42:41 +09:00
parent bc0c137a89
commit dc7b18e4e2

View file

@ -6401,11 +6401,10 @@ namespace ts {
}
}
if (source.flags & TypeFlags.ObjectType && target.flags & TypeFlags.Primitive) {
tryElaborateErrorsForPrimitivesAndObjects(source, target);
}
if (reportErrors) {
if (source.flags & TypeFlags.ObjectType && target.flags & TypeFlags.Primitive) {
tryElaborateErrorsForPrimitivesAndObjects(source, target);
}
reportRelationError(headMessage, source, target);
}
return Ternary.False;