| Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| index 12be2f687abdea5f1bd82487b3ae575be137cba5..72665295e4841351759b8e604360f1866d0fffbd 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| @@ -4432,15 +4432,6 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
|
| MessageKind.SWITCH_CASE_VALUE_OVERRIDES_EQUALS);
|
| failure = true;
|
| }
|
| - } else {
|
| - DartType constantType =
|
| - constant.computeType(compiler);
|
| - if (constantType != firstConstantType) {
|
| - compiler.reportFatalError(
|
| - match.expression,
|
| - MessageKind.SWITCH_CASE_TYPES_NOT_EQUAL);
|
| - failure = true;
|
| - }
|
| }
|
| constants[labelOrCase] = constant;
|
| }
|
|
|