We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11f4e3c commit add5146Copy full SHA for add5146
src/compiler/checker.ts
@@ -6255,11 +6255,11 @@ namespace ts {
6255
}
6256
6257
function typeIdenticalToSomeType(source: Type, target: UnionOrIntersectionType): boolean {
6258
- for (let t of target.types) {
+ for (const t of target.types) {
6259
if (isTypeIdenticalTo(source, t)) {
6260
return true;
6261
6262
- }
+ }
6263
return false;
6264
6265
@@ -6288,7 +6288,7 @@ namespace ts {
6288
6289
return source;
6290
6291
-
+
6292
function getInferenceCandidates(context: InferenceContext, index: number): Type[] {
6293
const inferences = context.inferences[index];
6294
return inferences.primary || inferences.secondary || emptyArray;
0 commit comments