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

Unified Diff: tests/language/argument_definition_test.dart

Issue 11225006: Handle super != and ? (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/argument_definition_test.dart
===================================================================
--- tests/language/argument_definition_test.dart (revision 13829)
+++ tests/language/argument_definition_test.dart (working copy)
@@ -55,6 +55,8 @@
};
}
+tl_test([a]) => ?a;
+
main() {
// Use a loop to test optimized version as well.
for (int i = 0; i < 1000; i++) {
@@ -67,5 +69,8 @@
Expect.equals(720, closure_test(1, b: 2)());
Expect.equals(523, closure_test(1, b: 2, c: 3)());
Expect.equals(703, closure_test(1, c: 3)());
+
+ Expect.equals(true, tl_test(0));
+ Expect.equals(false, tl_test());
}
}
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698