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

Unified Diff: tests/language/src/NonParameterizedFactoryTest.dart

Issue 8515024: Require legacy form of type parameters in factories and report errors if a factory class does not... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 | « tests/language/language.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/NonParameterizedFactoryTest.dart
===================================================================
--- tests/language/src/NonParameterizedFactoryTest.dart (revision 1463)
+++ tests/language/src/NonParameterizedFactoryTest.dart (working copy)
@@ -7,12 +7,13 @@
Interface.withArg(T value);
}
+// A factory must be parametrized. Use legacy form.
class Factory {
- factory Interface() {
+ factory Interface<T>() {
return null;
}
- factory Interface.withArg(value) {
+ factory Interface<T>.withArg(value) {
return null;
}
}
« no previous file with comments | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698