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

Unified Diff: tests/language/const_var_helper.dart

Issue 10829334: Const variable declarations accepted in the parser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Test helper added Created 8 years, 4 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 | « tests/co19/co19-dart2js.status ('k') | tests/language/const_var_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/const_var_helper.dart
diff --git a/runtime/tests/vm/dart/mysrc/test2.dart b/tests/language/const_var_helper.dart
similarity index 59%
copy from runtime/tests/vm/dart/mysrc/test2.dart
copy to tests/language/const_var_helper.dart
index 6778525943ec01d1e10e00de490e36a57887dcbe..6d4c06dbcf9f417250753b59c8d335cafe463626 100644
--- a/runtime/tests/vm/dart/mysrc/test2.dart
+++ b/tests/language/const_var_helper.dart
@@ -1,13 +1,12 @@
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// 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.
+// All things regarding constant variables.
-#library('test2.dart');
+/** Helper library for 'const_var_test.dart' */
+#library('const_var_helper');
-#source('../$SRC/test2a.dart');
-
-int test2() {
- var result = test2a();
- Expect.equals(2, result);
- return result;
+class Foo<E> {
+ const Foo();
}
+
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/const_var_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698