| Index: pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| index 52a7eafefd0e0d73f0dad121642c0a355aba73a2..ab6218ebabf9c56b39e088fef26a524bb925a613 100644
|
| --- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| +++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| @@ -126,8 +126,7 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
|
| void inferType(ParameterElementImpl p, DartType inferredType) {
|
| // Check that there is no declared type, and that we have not already
|
| // inferred a type in some fashion.
|
| - if (p.hasImplicitType &&
|
| - (p.type == null || p.type.isDynamic)) {
|
| + if (p.hasImplicitType && (p.type == null || p.type.isDynamic)) {
|
| inferredType = ts.upperBoundForType(inferredType);
|
| if (!inferredType.isDynamic) {
|
| p.type = inferredType;
|
|
|