8000 Undo comment override from merge. · icssjs/TypeScript@3cc64cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cc64cb

Browse files
Undo comment override from merge.
1 parent a3faca5 commit 3cc64cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14478,8 +14478,8 @@ namespace ts {
1447814478
if (produceDiagnostics && clause.kind === SyntaxKind.CaseClause) {
1447914479
const caseClause = <CaseClause>clause;
1448014480
// TypeScript 1.0 spec (April 2014): 5.9
14481-
// In a 'switch' statement, each 'case' expression must be of a type that is assignable to or from the type of the 'switch' expression.
14482-
// TODO (drosen): this needs to be amended to reflect the "comparable" relationship.
14481+
// In a 'switch' statement, each 'case' expression must be of a type that is comparable
14482+
// to or from the type of the 'switch' expression.
1448314483
const caseType = checkExpression(caseClause.expression);
1448414484
if (!isTypeComparableTo(expressionType, caseType)) {
1448514485
// expressionType is not comparable to caseType, try the reversed check and report errors if it fails

0 commit comments

Comments
 (0)
0