From 3cc64cbd296dfde5444279d2d5c37df58f709183 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 30 Mar 2016 01:03:32 -0700 Subject: [PATCH] Undo comment override from merge. --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 76f32b2fece77..775e4a083996f 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -14478,8 +14478,8 @@ namespace ts { if (produceDiagnostics && clause.kind === SyntaxKind.CaseClause) { const 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