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

Unified Diff: test/codegen/fieldtest.dart

Issue 1224083017: Add support for Enums (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Use interpolation Created 5 years, 5 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
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/fieldtest.dart
diff --git a/test/codegen/fieldtest.dart b/test/codegen/fieldtest.dart
index a6b140e72df534cee3331ed0a478abf3e41fd5d4..b3a596ee61f462ae3c96cd68f3777972dede0f76 100644
--- a/test/codegen/fieldtest.dart
+++ b/test/codegen/fieldtest.dart
@@ -64,6 +64,8 @@ class StaticFieldOrder2 {
static const d = 4;
}
+enum MyEnum { Val1, Val2, Val3, Val4 }
+
void main() {
var a = new A();
foo(a);
@@ -71,4 +73,6 @@ void main() {
print(baz(a));
print(new Generic<String>().foo(' world'));
+
+ print(MyEnum.values);
}
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698