Skip to content

Commit 3f66f6c

Browse files
committed
Fix new compiler errors
1 parent 9b1dbea commit 3f66f6c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/compiler/checker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23026,7 +23026,7 @@ namespace ts {
2302623026
else {
2302723027
for (let i = 0; i < sources.length; i++) {
2302823028
const saveInferencePriority = inferencePriority;
23029-
inferencePriority = InferencePriority.MaxValue;
23029+
inferencePriority = InferencePriority.MaxValue as InferencePriority;
2303023030
inferFromTypes(sources[i], t);
2303123031
if (inferencePriority === priority) matched[i] = true;
2303223032
inferenceCircularity = inferenceCircularity || inferencePriority === InferencePriority.Circularity;
@@ -34971,7 +34971,7 @@ namespace ts {
3497134971
}
3497234972

3497334973
function checkExpressionCached(node: Expression | QualifiedName, checkMode?: CheckMode): Type {
34974-
if (checkMode && checkMode !== CheckMode.Normal) {
34974+
if (checkMode) {
3497534975
return checkExpression(node, checkMode);
3497634976
}
3497734977
const links = getNodeLinks(node);

src/compiler/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3922,8 +3922,8 @@ namespace ts {
39223922
// is distinguished from a regular type by a flags value of zero. Incomplete type
39233923
// objects are internal to the getFlowTypeOfReference function and never escape it.
39243924
export interface IncompleteType {
3925-
flags: TypeFlags; // No flags set
3926-
type: Type; // The type marked incomplete
3925+
flags: TypeFlags | 0; // No flags set
3926+
type: Type; // The type marked incomplete
39273927
}
39283928

39293929
export interface AmdDependency {

0 commit comments

Comments
 (0)