| Index: pkg/analyzer/lib/src/generated/type_system.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/type_system.dart b/pkg/analyzer/lib/src/generated/type_system.dart
|
| index 7582312dba9547e8405154934de6a438f6701e2c..0488553c43014ca14e9210c463bb5279263b57a8 100644
|
| --- a/pkg/analyzer/lib/src/generated/type_system.dart
|
| +++ b/pkg/analyzer/lib/src/generated/type_system.dart
|
| @@ -1604,7 +1604,9 @@ class _StrongInferenceTypeSystem extends StrongTypeSystemImpl {
|
| }
|
|
|
| inferredTypes[i] =
|
| - variance.passedIn || lowerBound.isBottom ? upperBound : lowerBound;
|
| + variance.passedIn && !upperBound.isDynamic || lowerBound.isBottom
|
| + ? upperBound
|
| + : lowerBound;
|
| }
|
|
|
| // Return the instantiated type.
|
|
|