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

Unified Diff: tests/language/type_checks_in_factory_method_test.dart

Issue 10383238: Fix tests in language suite: eliminate String + (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/language/top_level_func_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/type_checks_in_factory_method_test.dart
===================================================================
--- tests/language/type_checks_in_factory_method_test.dart (revision 7724)
+++ tests/language/type_checks_in_factory_method_test.dart (working copy)
@@ -12,12 +12,12 @@
Bar() {}
factory Bar.from() {
- var func = (T arg) {
+ var func = (T arg) {
T foo = arg;
bool isString = foo is String;
print(arg);
- print(" String=" + isString);
- };
+ print(" String=$isString");
+ };
func("Hello World!"); // If T is not String, dynamic type checks should fail
return new Bar<T>();
« no previous file with comments | « tests/language/top_level_func_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698