Index: pkg/analyzer/test/src/task/strong/checker_test.dart |
diff --git a/pkg/analyzer/test/src/task/strong/checker_test.dart b/pkg/analyzer/test/src/task/strong/checker_test.dart |
index e7d7de055ed1ccee032683a750390178711e3253..591404044b649aaee6d77abf0e7a44eaa441e293 100644 |
--- a/pkg/analyzer/test/src/task/strong/checker_test.dart |
+++ b/pkg/analyzer/test/src/task/strong/checker_test.dart |
@@ -113,6 +113,15 @@ test() { |
'''); |
} |
+ void test_callMethodOnFunctions() { |
+ checkFile(r''' |
+void f(int x) => print(x); |
+main() { |
+ f.call(/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/'hi'); |
+} |
+ '''); |
+ } |
+ |
void test_castsInConditions() { |
checkFile(''' |
main() { |