Skip to content

Commit f6de919

Browse files
committed
Add assert in reportNoCommonSupertypeError
1 parent 1bb4a62 commit f6de919

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/checker.ts

+2
Original file line numberDiff line numberDiff line change
@@ -4379,6 +4379,8 @@ module ts {
43794379
}
43804380
}
43814381

4382+
Debug.assert(!!downfallType, "If there is no common supertype, each type should have a downfallType");
4383+
43824384
if (score > bestSupertypeScore) {
43834385
bestSupertype = types[i];
43844386
bestSupertypeDownfallType = downfallType;

0 commit comments

Comments
 (0)