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

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: Feedback from mmendez 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
« no previous file with comments | « tests/language/src/FactoryNegativeTest.dart ('k') | tests/language/src/NonParameterizedFactoryTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/NonParameterizedFactory2Test.dart
diff --git a/tests/language/src/NonParameterizedFactory2Test.dart b/tests/language/src/NonParameterizedFactory2Test.dart
index e896e23bb39c1b94b179b1acc365cffdcc9498a6..b223ae951902e33bbe95af4a4c68fd47bd3a7aa5 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> default Factory {
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) {
return null;
}
}
« no previous file with comments | « tests/language/src/FactoryNegativeTest.dart ('k') | tests/language/src/NonParameterizedFactoryTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698