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

Unified Diff: tests/language/src/Prefix17Test.dart

Issue 8428006: Fix prefix variable parse errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | « compiler/java/com/google/dart/compiler/parser/DartParser.java ('k') | tests/language/src/library12.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/Prefix17Test.dart
diff --git a/tests/language/src/Prefix17Test.dart b/tests/language/src/Prefix17Test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3dac9cbf2ad491eb34649ef2376c3d6377746082
--- /dev/null
+++ b/tests/language/src/Prefix17Test.dart
@@ -0,0 +1,19 @@
+// Copyright (c) 2011, 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.
+
+#library("Prefix17Test.dart");
+#import("library12.dart", prefix:"lib12");
+
+class LocalClass {
+ static int static_fld;
+}
+
+void main() {
+ LocalClass.static_fld = 42;
+ var lc1 = new lib12.Library12(5);
+ lib12.Library12 lc2 = new lib12.Library12(10);
+ lib12.Library12 lc2m = new lib12.Library12.other(10,2);
+ lib12.Library12.static_fld = 43;
+ //print("${LocalClass.static_fld}, ${lc1.fld}, ${lc2.fld}, ${lc2m.fld}, ${lib12.Library12.static_fld}");
mmendez 2011/11/01 14:02:08 Did you want to do an Expects here to check someth
codefu 2011/11/01 14:03:09 I'll update with expect tests and also check the o
+}
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartParser.java ('k') | tests/language/src/library12.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698