Skip to content

Commit

Permalink
Give autoType its flags the normal way
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jul 13, 2022
1 parent 2974d9a commit dd6bdaf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,7 @@ namespace ts {
const errorTypes = new Map<string, Type>();

const anyType = createIntrinsicType(TypeFlags.Any, "any");
const autoType = createIntrinsicType(TypeFlags.Any, "any");
autoType.objectFlags |= ObjectFlags.NonInferrableType;
const autoType = createIntrinsicType(TypeFlags.Any, "any", ObjectFlags.NonInferrableType);
const wildcardType = createIntrinsicType(TypeFlags.Any, "any");
const errorType = createIntrinsicType(TypeFlags.Any, "error");
const unresolvedType = createIntrinsicType(TypeFlags.Any, "unresolved");
Expand Down

0 comments on commit dd6bdaf

Please sign in to comment.