Skip to content

Commit dd6bdaf

Browse files
committed
Give autoType its flags the normal way
1 parent 2974d9a commit dd6bdaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,7 @@ namespace ts {
785785
const errorTypes = new Map<string, Type>();
786786

787787
const anyType = createIntrinsicType(TypeFlags.Any, "any");
788-
const autoType = createIntrinsicType(TypeFlags.Any, "any");
789-
autoType.objectFlags |= ObjectFlags.NonInferrableType;
788+
const autoType = createIntrinsicType(TypeFlags.Any, "any", ObjectFlags.NonInferrableType);
790789
const wildcardType = createIntrinsicType(TypeFlags.Any, "any");
791790
const errorType = createIntrinsicType(TypeFlags.Any, "error");
792791
const unresolvedType = createIntrinsicType(TypeFlags.Any, "unresolved");

0 commit comments

Comments
 (0)