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

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

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Got rid of some problems. 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/NonParameterizedFactory2Test.dart
diff --git a/tests/language/src/NonParameterizedFactory2Test.dart b/tests/language/src/NonParameterizedFactory2Test.dart
index e896e23bb39c1b94b179b1acc365cffdcc9498a6..c826a68121bc755b1973c51cbb9ab2fa132ab77b 100644
--- a/tests/language/src/NonParameterizedFactory2Test.dart
+++ b/tests/language/src/NonParameterizedFactory2Test.dart
@@ -2,17 +2,17 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-interface Interface<T> factory Factory {
+interface Interface<T> factory Factory<T> {
ahe 2011/12/15 09:02:13 This is not necessary. Also 'factory' -> 'default'
zundel 2011/12/16 21:36:29 Done.
Interface();
Interface.withArg(T value);
}
-class Factory {
- factory Interface<T>() {
+class Factory<T> {
+ factory Interface() {
return null;
}
- factory Interface<T>.withArg(value) {
+ factory Interface.withArg(value) {
zundel 2011/12/16 21:36:29 I'm not sure what this is trying to test, I get a
return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698