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

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

Issue 8921033: Implement revised factories in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/language/src/Factory2Test.dart
===================================================================
--- tests/language/src/Factory2Test.dart (revision 2391)
+++ tests/language/src/Factory2Test.dart (working copy)
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
// Dart test program for testing factories.
-interface Link<T> extends Iterable<T> factory LinkFactory {
+interface Link<T> extends Iterable<T> factory LinkFactory<T> {
Link(T head, [Link<T> tail]);
Link<T> prepend(T element);
}
@@ -12,8 +12,8 @@
const EmptyLink();
}
-class LinkFactory {
- factory Link<T>(head, [Link tail]) {
+class LinkFactory<T> {
+ factory Link(head, [Link tail]) {
}
}

Powered by Google App Engine
This is Rietveld 408576698