Skip to content

Commit dc7b18e

Browse files
fix some errors
1 parent bc0c137 commit dc7b18e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6401,11 +6401,10 @@ namespace ts {
64016401
}
64026402
}
64036403

6404-
if (source.flags & TypeFlags.ObjectType && target.flags & TypeFlags.Primitive) {
6405-
tryElaborateErrorsForPrimitivesAndObjects(source, target);
6406-
}
6407-
64086404
if (reportErrors) {
6405+
if (source.flags & TypeFlags.ObjectType && target.flags & TypeFlags.Primitive) {
6406+
tryElaborateErrorsForPrimitivesAndObjects(source, target);
6407+
}
64096408
reportRelationError(headMessage, source, target);
64106409
}
64116410
return Ternary.False;

0 commit comments

Comments
 (0)