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

Unified Diff: tests/lib/mirrors/redirecting_factory_test.dart

Issue 45993002: Remove now-prohibited default values from optional parameters of redirecting constructors in mirror… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« tests/lib/lib.status ('K') | « tests/lib/lib.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/redirecting_factory_test.dart
diff --git a/tests/lib/mirrors/redirecting_factory_test.dart b/tests/lib/mirrors/redirecting_factory_test.dart
index 65090697b1ea1513d25a49a3314b162aea752459..6f0ddf2fbbdf9201a5412d0663ca6b1dddb23e66 100644
--- a/tests/lib/mirrors/redirecting_factory_test.dart
+++ b/tests/lib/mirrors/redirecting_factory_test.dart
@@ -14,28 +14,28 @@ class Class<T1, T2> {
factory Class.redirectingFactoryNoOptional(a, b) = Class.factoryNoOptional;
factory Class.factoryUnnamedOptional(a, [b = 42]) => new Class<T1, T2>(a - b);
- factory Class.redirectingFactoryUnnamedOptional(a, [b = 5]) =
+ factory Class.redirectingFactoryUnnamedOptional(a, [b]) =
Class.factoryUnnamedOptional;
factory Class.factoryNamedOptional(a, {b: 42}) {
return new Class<T1, T2>(a - b);
}
- factory Class.redirectingFactoryNamedOptional(a, {b: 5}) =
+ factory Class.redirectingFactoryNamedOptional(a, {b}) =
Class.factoryNamedOptional;
factory Class.factoryMoreNamedOptional(a, {b: 0, c: 2}) {
return new Class<T1, T2>(a - b - c);
}
- factory Class.redirectingFactoryMoreNamedOptional(a, {b: 42}) =
+ factory Class.redirectingFactoryMoreNamedOptional(a, {b}) =
Class.factoryMoreNamedOptional;
factory Class.factoryMoreUnnamedOptional(a, [b = 0, c = 2]) {
return new Class<T1, T2>(a - b - c);
}
- factory Class.redirectingFactoryMoreUnnamedOptional(a, [b = 42]) =
+ factory Class.redirectingFactoryMoreUnnamedOptional(a, [b]) =
Class.factoryMoreUnnamedOptional;
factory Class.redirectingFactoryStringIntTypeParameters(a, b) =
« tests/lib/lib.status ('K') | « tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698