Strong mode fix for apply2_test.dart

The type signature of throwsNSME needs to be specified so that map and
list literals appearing later in the source file have their types
correctly inferred.

Change-Id: Ifa60670dc5fb7d39b6f8f028e1b55152e736554c
Reviewed-on: https://dart-review.googlesource.com/19480
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry 2017-11-08 23:34:50 +00:00 committed by commit-bot@chromium.org
parent c2bdb15d7f
commit 4c3fad39f2

View file

@ -8,7 +8,8 @@ apply(Function function, List positional, Map<Symbol, dynamic> named) {
return Function.apply(function, positional, named);
}
void throwsNSME(function, positional, named) {
void throwsNSME(
Function function, List positional, Map<Symbol, dynamic> named) {
Expect.throwsNoSuchMethodError(() => apply(function, positional, named));
}