From dfac88ec18851a8f228550aee5c051ccb2e62eb8 Mon Sep 17 00:00:00 2001 From: Jennifer Messerly Date: Thu, 20 Oct 2016 10:22:23 -0700 Subject: [PATCH] fix typo in future union inference code R=leafp@google.com Review URL: https://codereview.chromium.org/2431313005 . --- pkg/analyzer/lib/src/generated/type_system.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }