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

Unified Diff: tests/language/default_factory2_test.dart

Issue 10441115: Check upper bounds of factory class type parameters when instantiating an (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 months 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/co19/co19-runtime.status ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/default_factory2_test.dart
===================================================================
--- tests/language/default_factory2_test.dart (revision 8159)
+++ tests/language/default_factory2_test.dart (working copy)
@@ -11,7 +11,7 @@
class A<T extends Foo> implements IA<T> {
factory A(){}
}
-
+
main() {
- var result = new IA<String>(); /// 01: static type warning
+ var result = new IA<String>(); /// 01: static type warning, dynamic type error
}
« no previous file with comments | « tests/co19/co19-runtime.status ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698