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

Unified Diff: tests/language/reify_typevar_static_test.dart

Issue 985203002: Allow direct access to type parameters from factory (issue 22700). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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/language/regress_22700_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/reify_typevar_static_test.dart
===================================================================
--- tests/language/reify_typevar_static_test.dart (revision 44338)
+++ tests/language/reify_typevar_static_test.dart (working copy)
@@ -12,7 +12,7 @@
b ? T : /// 00: compile-time error
null;
factory C.factoryConstructor(bool b) => new C(
- b ? T : /// 01: compile-time error
+ b ? T : /// 01: ok
null);
C.redirectingConstructor(bool b) : this(
b ? T : /// 02: ok
« no previous file with comments | « tests/language/regress_22700_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698