Skip to content

Commit

Permalink
Fixed formatting to fix the CI on main (#59801)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored Aug 29, 2024
1 parent eadb9e1 commit 0e292c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22056,7 +22056,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
const [sourceType, targetType] = getTypeNamesForErrorDisplay(source, target);
let generalizedSource = source;
let generalizedSourceType = sourceType;

// Don't generalize on 'never' - we really want the original type
// to be displayed for use-cases like 'assertNever'.
if (!(target.flags & TypeFlags.Never) && isLiteralType(source) && !typeCouldHaveTopLevelSingletonTypes(target)) {
Expand Down

0 comments on commit 0e292c4

Please sign in to comment.