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

Unified Diff: tests/language/src/TypeVariableBoundsTest.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/TypeVariableBoundsTest.dart
===================================================================
--- tests/language/src/TypeVariableBoundsTest.dart (revision 2391)
+++ tests/language/src/TypeVariableBoundsTest.dart (working copy)
@@ -8,16 +8,14 @@
class Foo<T extends num> {
Foo();
- // F is not assignable to num.
- factory IFoo<F extends String>.bad() { return null; } /// 00: static type error
+ factory XFoo.bad() { return null; } /// 00: compile-time error
- factory IFoo<F extends num>.good() { return null; }
+ factory IFoo.good() { return null; }
- // The bound of F is Object which is assignable to num.
- factory IFoo<F>.ish() { return null; }
+ factory IFoo() { return null; }
}
-interface IFoo<X extends num> factory Foo<T extends num> {
+interface IFoo<T extends num> factory Foo<T extends num> {
}
// String is not assignable to num.

Powered by Google App Engine
This is Rietveld 408576698