Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1082)

Unified Diff: sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 184663004: Follow factory redirections when checking case expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/warnings.dart
diff --git a/sdk/lib/_internal/compiler/implementation/warnings.dart b/sdk/lib/_internal/compiler/implementation/warnings.dart
index c71f995cdeb3c0d859f1be8bb30dff5b501693aa..8ddc8d9c7cc9604cfe79eb3d74d72dd0ec038587 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -540,6 +540,9 @@ main() => new C<String>();
static const MessageKind SWITCH_CASE_TYPES_NOT_EQUAL_CASE = const MessageKind(
"'case' expression of type '#{type}'.");
+ static const MessageKind SWITCH_CASE_FORBIDDEN = const MessageKind(
+ "'case' expression may not be of type '#{type}'.");
+
static const MessageKind SWITCH_CASE_VALUE_OVERRIDES_EQUALS =
const MessageKind(
"'case' expression type '#{type}' overrides 'operator =='.");

Powered by Google App Engine
This is Rietveld 408576698