We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4a09b9 commit a4fa025Copy full SHA for a4fa025
src/compiler/checker.ts
@@ -15106,12 +15106,15 @@ namespace ts {
15106
// conditional types, and resolve substitution types to either the substitution (on the source
15107
// side) or the type variable (on the target side).
15108
let source = originalSource;
15109
- let target = originalTarget;
15110
do {
15111
const s = getNormalizedType(source, /*writing*/ false);
15112
- const t = getNormalizedType(target, /*writing*/ true);
15113
- if (s === source && t === target) break;
+ if (s === source) break;
15114
source = s;
+ } while (true);
+ let target = originalTarget;
15115
+ do {
15116
+ const t = getNormalizedType(target, /*writing*/ true);
15117
+ if (t === target) break;
15118
target = t;
15119
} while (true);
15120
0 commit comments