Skip to content

Commit ca98987

Browse files
committed
cleanup
1 parent 2823aff commit ca98987

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18745,7 +18745,6 @@ namespace ts {
1874518745
}
1874618746
}
1874718747
}
18748-
// >> HERE
1874918748
else if (source.flags & TypeFlags.Conditional) {
1875018749
if (target.flags & TypeFlags.Conditional) {
1875118750
// Two conditional types 'T1 extends U1 ? X1 : Y1' and 'T2 extends U2 ? X2 : Y2' are related if
@@ -18772,7 +18771,6 @@ namespace ts {
1877218771
}
1877318772
}
1877418773
}
18775-
// >> HERE: source is conditional, target is not
1877618774
else {
1877718775
// conditionals aren't related to one another via distributive constraint as it is much too inaccurate and allows way
1877818776
// more assignments than are desirable (since it maps the source check type to its constraint, it loses information)

0 commit comments

Comments
 (0)