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

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 1435)
+++ tests/language/src/NonParameterizedFactoryTest.dart (working copy)
@@ -7,7 +7,8 @@
Interface.withArg(T value);
}
-class Factory {
+// A factory must be parametrized. Use legacy form.
ngeoffray 2011/11/11 10:09:44 parameterized. I don't understand the comment. Wh
ahe 2011/11/11 14:54:30 A factory *class* do not have to be parameterized.
+class Factory<T> {
ahe 2011/11/11 14:54:30 Remove the type variable.
srdjan 2011/11/11 16:33:39 Done.
factory Interface() {
ahe 2011/11/11 14:54:30 This should be: factory Interface<T>() {
srdjan 2011/11/11 16:33:39 Done.
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