Index: tests/language/async_return_types_test.dart |
diff --git a/tests/language_2/async_return_types_test.dart b/tests/language/async_return_types_test.dart |
similarity index 80% |
copy from tests/language_2/async_return_types_test.dart |
copy to tests/language/async_return_types_test.dart |
index eae381b19112164da26fa11a218a0a362ba77ead..5e1c223fc0f3a47373f842963106edccd4d89424 100644 |
--- a/tests/language_2/async_return_types_test.dart |
+++ b/tests/language/async_return_types_test.dart |
@@ -14,17 +14,18 @@ Future<int> foo2() async { |
return 3; |
} |
-Future<int> //# wrongTypeParameter: compile-time error |
+Future<int> //# wrongTypeParameter: static type warning, dynamic type error |
foo3() async { |
return "String"; |
} |
-Future<int, String> //# tooManyTypeParameters: compile-time error |
+// Future<int, String> is treated like Future<dynamic> |
+Future<int, String> //# tooManyTypeParameters: static type warning |
foo4() async { |
return "String"; |
} |
-int //# wrongReturnType: compile-time error |
+int //# wrongReturnType: static type warning, dynamic type error |
foo5() async { |
return 3; |
} |
@@ -34,7 +35,7 @@ Future<int> foo6() async { |
return new Future<int>.value(3); |
} |
-Future<Future<int>> //# nestedFuture: compile-time error |
+Future<Future<int>> //# nestedFuture: static type warning, dynamic type error |
foo7() async { |
return new Future<int>.value(3); |
} |