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

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

Issue 25097005: Make ClassMirror.newInstance deal with reordered etc type arguments for redirecting factories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: multitest Created 7 years, 3 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/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 1d0059faf28026e28d871a6ca0f866d2bd2ec04e..65090697b1ea1513d25a49a3314b162aea752459 100644
--- a/tests/lib/mirrors/redirecting_factory_test.dart
+++ b/tests/lib/mirrors/redirecting_factory_test.dart
@@ -14,14 +14,14 @@ 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]) =
+ factory Class.redirectingFactoryUnnamedOptional(a, [b = 5]) =
Class.factoryUnnamedOptional;
- factory Class.factoryNamedOptional(a, {b: 0}) {
+ factory Class.factoryNamedOptional(a, {b: 42}) {
return new Class<T1, T2>(a - b);
}
- factory Class.redirectingFactoryNamedOptional(a, {b: 42}) =
+ factory Class.redirectingFactoryNamedOptional(a, {b: 5}) =
Class.factoryNamedOptional;
factory Class.factoryMoreNamedOptional(a, {b: 0, c: 2}) {

Powered by Google App Engine
This is Rietveld 408576698