mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 10:48:25 +00:00
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:
parent
c2bdb15d7f
commit
4c3fad39f2
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue