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

Unified Diff: test/kernel/regression/enum.dart

Issue 2087503002: Getting enums for free. (Closed) Base URL: git@github.com:dart-lang/rasta.git@prune_unsupported
Patch Set: Created 4 years, 6 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: test/kernel/regression/enum.dart
diff --git a/test/kernel/regression/bad_interpolation.dart b/test/kernel/regression/enum.dart
similarity index 89%
copy from test/kernel/regression/bad_interpolation.dart
copy to test/kernel/regression/enum.dart
index 98fd62e1573d05bec4f9a0e0781b6159189b0a1a..9d1110cca5e0ad2fde01a260fb459218904e6f20 100644
--- a/test/kernel/regression/bad_interpolation.dart
+++ b/test/kernel/regression/enum.dart
@@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
-main() {
- print(" $x.);
+enum Foo {
+ ec1,
+ ec2,
}

Powered by Google App Engine
This is Rietveld 408576698