Skip to content

Commit 9583850

Browse files
authored
Deconflict values of CheckMode.RestBindingElement and CheckMode.TypeOnly (#54540)
1 parent 4749c38 commit 9583850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ export const enum CheckMode {
12601260
RestBindingElement = 1 << 7, // Checking a type that is going to be used to determine the type of a rest binding element
12611261
// e.g. in `const { a, ...rest } = foo`, when checking the type of `foo` to determine the type of `rest`,
12621262
// we need to preserve generic types instead of substituting them for constraints
1263-
TypeOnly = 1 << 7, // Called from getTypeOfExpression, diagnostics may be omitted
1263+
TypeOnly = 1 << 8, // Called from getTypeOfExpression, diagnostics may be omitted
12641264
}
12651265

12661266
/** @internal */

0 commit comments

Comments
 (0)