fix some errors
This commit is contained in:
parent
bc0c137a89
commit
dc7b18e4e2
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue