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

Unified Diff: pkg/compiler/lib/src/warnings.dart

Issue 707463003: Support enums in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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: pkg/compiler/lib/src/warnings.dart
diff --git a/pkg/compiler/lib/src/warnings.dart b/pkg/compiler/lib/src/warnings.dart
index d6945d2819ab634a6959fdecb21498602ebd525c..5c3c1608d5cec5df6006bce67a3cef786941f7e1 100644
--- a/pkg/compiler/lib/src/warnings.dart
+++ b/pkg/compiler/lib/src/warnings.dart
@@ -1983,6 +1983,14 @@ Please include the following information:
" <sdk>/lib/_internal/compiler/js_lib/preambles.");
+ static const MessageKind EXPERIMENTAL_ENUMS = const MessageKind(
+ "Experimental language feature 'enums' is not supported.",
+ howToFix: "Use option '--enable-enum' to use enum declarations.",
+ examples: const ["""
+enum Enum { A, B, C }
+main() => print(Enum.A);
+"""]);
+
static const MessageKind EXPERIMENTAL_ASYNC_AWAIT = const MessageKind(
"Experimental language feature 'async/await' is not supported.");

Powered by Google App Engine
This is Rietveld 408576698