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

Unified Diff: tests/language/bad_named_parameters_test.dart

Issue 11309011: Issue 4289. Separate optional positional and named parameters (Closed) Base URL: https://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
Index: tests/language/bad_named_parameters_test.dart
diff --git a/tests/language/bad_named_parameters_test.dart b/tests/language/bad_named_parameters_test.dart
index 937cf05de695080f5d9c5bc4c0f7989a3cb9f710..99a82b84d044f2e2a8aabb5c32564065f42ba73d 100644
--- a/tests/language/bad_named_parameters_test.dart
+++ b/tests/language/bad_named_parameters_test.dart
@@ -6,11 +6,11 @@
class BadNamedParametersTest {
- int f42(int a, [int b = 20, int c = 30]) {
+ int f42(int a, {int b: 20, int c: 30}) {
return 100*(100*a + b) + c;
}
- int f52(int a, [int b = 20, int c, int d = 40]) {
+ int f52(int a, {int b: 20, int c, int d: 40}) {
return 100*(100*(100*a + b) + (c == null ? 0 : c)) + d;
}
« compiler/java/com/google/dart/compiler/type/Types.java ('K') | « tests/co19/co19-compiler.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698