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

Unified Diff: tests/lib_2/mirrors/declarations_model.dart

Issue 3006863002: Made helpers strong-mode clean for Dart 2.0 migration. (Closed)
Patch Set: Created 3 years, 4 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_2/mirrors/declarations_model.dart
diff --git a/tests/lib_2/mirrors/declarations_model.dart b/tests/lib_2/mirrors/declarations_model.dart
index 46a08ce4fcdde31f13f836cbc3b00afce85a2701..f25523f1e7639442693a33d1a5ac17ba88d85e3c 100644
--- a/tests/lib_2/mirrors/declarations_model.dart
+++ b/tests/lib_2/mirrors/declarations_model.dart
@@ -93,7 +93,7 @@ class Superclass<S> {
factory Superclass.inheritedNormalFactory(y) =>
new Superclass.inheritedRedirectingConstructor(y * 3);
factory Superclass.inheritedRedirectingFactory(z) =
- Superclass.inheritedNormalFactory;
+ Superclass<S>.inheritedNormalFactory;
Superclass._inheritedGenerativeConstructor(this._inheritedInstanceVariable);
Superclass._inheritedRedirectingConstructor(x)
@@ -101,7 +101,7 @@ class Superclass<S> {
factory Superclass._inheritedNormalFactory(y) =>
new Superclass._inheritedRedirectingConstructor(y * 3);
factory Superclass._inheritedRedirectingFactory(z) =
- Superclass._inheritedNormalFactory;
+ Superclass<S>._inheritedNormalFactory;
}
abstract class Class<C> extends Superclass<C>
@@ -135,13 +135,13 @@ abstract class Class<C> extends Superclass<C>
: super.inheritedGenerativeConstructor(0);
Class.redirectingConstructor(x) : this.generativeConstructor(x * 2);
factory Class.normalFactory(y) => new ConcreteClass(y * 3);
- factory Class.redirectingFactory(z) = Class.normalFactory;
+ factory Class.redirectingFactory(z) = Class<C>.normalFactory;
Class._generativeConstructor(this._instanceVariable)
: super._inheritedGenerativeConstructor(0);
Class._redirectingConstructor(x) : this._generativeConstructor(x * 2);
factory Class._normalFactory(y) => new ConcreteClass(y * 3);
- factory Class._redirectingFactory(z) = Class._normalFactory;
+ factory Class._redirectingFactory(z) = Class<C>._normalFactory;
}
// This is just here as a target of Class's factories to appease the analyzer.
« no previous file with comments | « tests/lib/mirrors/declarations_model_easier.dart ('k') | tests/lib_2/mirrors/declarations_model_easier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698