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

Unified Diff: tests/compiler/dart2js_extra/argument_definition_test.dart

Issue 11227038: Fix and reenable dart2js extra tests and dart2js native tests. (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 | « no previous file | tests/compiler/dart2js_extra/closure3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/argument_definition_test.dart
===================================================================
--- tests/compiler/dart2js_extra/argument_definition_test.dart (revision 13907)
+++ tests/compiler/dart2js_extra/argument_definition_test.dart (working copy)
@@ -4,7 +4,7 @@
// Test parsing and resolution of argument definition test.
-int test(int a, [int b = 2, int c = 3]) {
+int test(int a, {int b: 2, int c: 3}) {
int result = 0;
print(?b);
print(?result); /// 01: compile-time error
@@ -19,7 +19,7 @@
print(!?a?!?b:!?c == ?a??b:?c);
}
-closure_test(int a, [int b = 2, int c = 3]) {
+closure_test(int a, {int b: 2, int c: 3}) {
var x = 0;
return () {
int result = 0;
@@ -40,12 +40,12 @@
main() {
test(1);
- test(1, 2);
- test(1, 2, 3);
- test(1, c:3);
+ test(1, b: 2);
+ test(1, b: 2, c: 3);
+ test(1, c: 3);
closure_test(1)();
- closure_test(1, 2)();
- closure_test(1, 2, 3)();
- closure_test(1, c:3)();
+ closure_test(1, b: 2)();
+ closure_test(1, b: 2, c: 3)();
+ closure_test(1, c: 3)();
}
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/closure3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698