Skip to content

Commit

Permalink
Add assert in reportNoCommonSupertypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
JsonFreeman committed Mar 14, 2015
1 parent 1bb4a62 commit f6de919
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4379,6 +4379,8 @@ module ts {
}
}

Debug.assert(!!downfallType, "If there is no common supertype, each type should have a downfallType");

if (score > bestSupertypeScore) {
bestSupertype = types[i];
bestSupertypeDownfallType = downfallType;
Expand Down

0 comments on commit f6de919

Please sign in to comment.