Skip to content

Commit

Permalink
Fix new compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Oct 17, 2022
1 parent 9b1dbea commit 3f66f6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23026,7 +23026,7 @@ namespace ts {
else {
for (let i = 0; i < sources.length; i++) {
const saveInferencePriority = inferencePriority;
inferencePriority = InferencePriority.MaxValue;
inferencePriority = InferencePriority.MaxValue as InferencePriority;
inferFromTypes(sources[i], t);
if (inferencePriority === priority) matched[i] = true;
inferenceCircularity = inferenceCircularity || inferencePriority === InferencePriority.Circularity;
Expand Down Expand Up @@ -34971,7 +34971,7 @@ namespace ts {
}

function checkExpressionCached(node: Expression | QualifiedName, checkMode?: CheckMode): Type {
if (checkMode && checkMode !== CheckMode.Normal) {
if (checkMode) {
return checkExpression(node, checkMode);
}
const links = getNodeLinks(node);
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3922,8 +3922,8 @@ namespace ts {
// is distinguished from a regular type by a flags value of zero. Incomplete type
// objects are internal to the getFlowTypeOfReference function and never escape it.
export interface IncompleteType {
flags: TypeFlags; // No flags set
type: Type; // The type marked incomplete
flags: TypeFlags | 0; // No flags set
type: Type; // The type marked incomplete
}

export interface AmdDependency {
Expand Down

0 comments on commit 3f66f6c

Please sign in to comment.