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

Unified Diff: tests/language/top_level_getter_arrow_syntax_test.dart

Issue 10837288: New getter syntax for top-level getters (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/language/language.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/top_level_getter_arrow_syntax_test.dart
===================================================================
--- tests/language/top_level_getter_arrow_syntax_test.dart (revision 10826)
+++ tests/language/top_level_getter_arrow_syntax_test.dart (working copy)
@@ -4,6 +4,12 @@
get getter => 42;
+List<int> get lgetter => null;
+
+bool get two_wrongs { return !true; }
+
main() {
Expect.equals(42, getter);
+ Expect.equals(null, lgetter);
+ Expect.equals(false, two_wrongs);
}
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698