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

Unified Diff: tests/language/type_variable_bounds_test.dart

Issue 11434089: Update or delete language tests using obsolete interfaces or default factory (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/type_variable_bounds2_test.dart ('k') | tests/language/type_variable_scope_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_variable_bounds_test.dart
===================================================================
--- tests/language/type_variable_bounds_test.dart (revision 15648)
+++ tests/language/type_variable_bounds_test.dart (working copy)
@@ -7,14 +7,15 @@
class Foo<T extends num> {
Foo();
- factory XFoo.bad() { return null; } /// 00: static type warning
+ factory Foo.bad() = XFoo; /// 00: static type warning
- factory IFoo.good() { return null; }
+ factory Foo.good() = Foo;
- factory IFoo() { return null; }
+ factory Foo.IFoo() { return null; }
}
-interface IFoo<T extends num> default Foo<T extends num> {
+abstract class IFoo<T extends num> {
+ factory IFoo() = Foo<T>;
}
// String is not assignable to num.
« no previous file with comments | « tests/language/type_variable_bounds2_test.dart ('k') | tests/language/type_variable_scope_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698