diff --git a/pkg/analyzer/lib/src/generated/type_system.dart b/pkg/analyzer/lib/src/generated/type_system.dart index 2462145233f..c8c1fe652f5 100644 --- a/pkg/analyzer/lib/src/generated/type_system.dart +++ b/pkg/analyzer/lib/src/generated/type_system.dart @@ -1595,7 +1595,7 @@ class _StrongInferenceTypeSystem extends StrongTypeSystemImpl { // // This will typically lead to top with the current rules, but it will // work with `bottom` or if we remove Future flattening. - var f = upperBound as FutureUnionType; + var f = lowerBound as FutureUnionType; lowerBound = _typeSystem.getLeastUpperBound( _typeProvider, f.futureOfType, f.type); }