| Index: pkg/analyzer/lib/src/task/strong/checker.dart
|
| diff --git a/pkg/analyzer/lib/src/task/strong/checker.dart b/pkg/analyzer/lib/src/task/strong/checker.dart
|
| index 29857b009340d6eebebdc988fec351bc84374f6c..19899b59d1a0e07baebae948900a6dfebdadae8f 100644
|
| --- a/pkg/analyzer/lib/src/task/strong/checker.dart
|
| +++ b/pkg/analyzer/lib/src/task/strong/checker.dart
|
| @@ -129,14 +129,9 @@ class CodeChecker extends RecursiveAstVisitor {
|
| Expression arg = list[i];
|
| ParameterElement element = arg.staticParameterElement;
|
| if (element == null) {
|
| - if (type.parameters.length < len) {
|
| - // We found an argument mismatch, the analyzer will report this too,
|
| - // so no need to insert an error for this here.
|
| - continue;
|
| - }
|
| - element = type.parameters[i];
|
| - // TODO(vsm): When can this happen?
|
| - assert(element != null);
|
| + // We found an argument mismatch, the analyzer will report this too,
|
| + // so no need to insert an error for this here.
|
| + continue;
|
| }
|
| DartType expectedType = _elementType(element);
|
| if (expectedType == null) expectedType = DynamicTypeImpl.instance;
|
|
|