Chromium Code Reviews| 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 46d99db78ac57da85a0d7f6e547a964c795ca233..94558853e3729889f583ac64087816829c356e20 100644 |
| --- a/pkg/analyzer/test/src/task/strong/checker_test.dart |
| +++ b/pkg/analyzer/test/src/task/strong/checker_test.dart |
| @@ -1389,7 +1389,19 @@ void main() { |
| class DerivedFuture4<A> extends Future<A> { |
| /*=B*/ then/*<B>*/(Object onValue(A a)) => null; |
| } |
| - ''' |
| + ''' |
| + }); |
| + |
| + testChecker('generic function wrong number of arguments', { |
| + '/main.dart': r''' |
| + /*=T*/ foo/*<T>*/(/*=T*/ x) => x; |
| + main() { |
| + // resolving thses shouldn't crash. |
| + foo(1, 2); |
| + String x = foo('1', '2'); |
| + String x = /*severe:STATIC_TYPE_ERROR*/foo(1, 2); |
|
Leaf
2016/01/13 00:43:10
Also add a call with too few arguments, and maybe
Jennifer Messerly
2016/01/13 19:10:36
Good idea. Added.
|
| + } |
| + ''' |
| }); |
| testChecker('unary operators', { |