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>(); |