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

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

Issue 9212018: More parser stuff to handle pseudo keywords as identifiers (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/PseudoKWTest.dart
===================================================================
--- tests/language/src/PseudoKWTest.dart (revision 3317)
+++ tests/language/src/PseudoKWTest.dart (working copy)
@@ -88,7 +88,14 @@
}
}
+class C {
+ static int operator = (5);
+ static var get;
+ static get set() => 111;
+ static set set(set) { }
+}
+
main() {
PseudoKWTest.testMain();
A.check();
@@ -99,4 +106,8 @@
Expect.equals("typedef T", typedef("T"));
static("true");
Expect.equals(false, static("true"));
+ Expect.equals(5, C.operator);
+ Expect.equals(null, C.get);
+ C.set = 0;
+ Expect.equals(111, C.set);
}
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698