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

Unified Diff: tests/language/src/NonParameterizedFactoryTest.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
Index: tests/language/src/NonParameterizedFactoryTest.dart
diff --git a/tests/language/src/NonParameterizedFactoryTest.dart b/tests/language/src/NonParameterizedFactoryTest.dart
index 7a4c99aa728d699366a973d2d4de8d89010552c6..50ae230002b3ecb5fe1ad4ee870fd99af0b8d997 100644
--- a/tests/language/src/NonParameterizedFactoryTest.dart
+++ b/tests/language/src/NonParameterizedFactoryTest.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/NonParameterizedFactory2Test.dart ('k') | tests/language/src/TypeVariableBoundsTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698