Skip to content

Commit

Permalink
Undo comment override from merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Mar 30, 2016
1 parent a3faca5 commit 3cc64cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14478,8 +14478,8 @@ namespace ts {
if (produceDiagnostics && clause.kind === SyntaxKind.CaseClause) {
const caseClause = <CaseClause>clause;
// TypeScript 1.0 spec (April 2014): 5.9
// In a 'switch' statement, each 'case' expression must be of a type that is assignable to or from the type of the 'switch' expression.
// TODO (drosen): this needs to be amended to reflect the "comparable" relationship.
// In a 'switch' statement, each 'case' expression must be of a type that is comparable
// to or from the type of the 'switch' expression.
const caseType = checkExpression(caseClause.expression);
if (!isTypeComparableTo(expressionType, caseType)) {
// expressionType is not comparable to caseType, try the reversed check and report errors if it fails
Expand Down

0 comments on commit 3cc64cb

Please sign in to comment.