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

Unified Diff: tests/language/enum_duplicate_lib.dart

Issue 878843003: Support enums in dart2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 11 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: tests/language/enum_duplicate_lib.dart
diff --git a/tools/canary.dart b/tests/language/enum_duplicate_lib.dart
similarity index 64%
copy from tools/canary.dart
copy to tests/language/enum_duplicate_lib.dart
index cca1f90cd7be8eb2481a00a89bbc7ba7edaa6d4f..b9c84f5109af8178afedae4313ab9056c08b263b 100644
--- a/tools/canary.dart
+++ b/tests/language/enum_duplicate_lib.dart
@@ -2,10 +2,13 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Script which exits with code 42.
+library enum_duplicate_lib;
-import 'dart:io';
+enum Enum1 {
+ A,
+ B,
+}
-void main() {
- exitCode = 42;
+class Enum2 {
+ static Iterable get values => ['Enum2.A', 'Enum2.B'];
}
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/placeholder_collector.dart ('k') | tests/language/enum_duplicate_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698