| Index: pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/constant/evaluation.dart b/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| index 8659dfea7e32437c0077b9f9a655d5275c05b427..23ad1a2df0c6821f59bb5a9ef9b8effa780a9982 100644
|
| --- a/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| +++ b/pkg/analyzer/lib/src/dart/constant/evaluation.dart
|
| @@ -94,7 +94,7 @@ class ConstantEvaluationEngine {
|
| typeProvider.objectType.element.context.analysisOptions.strongMode,
|
| validator =
|
| validator ?? new ConstantEvaluationValidator_ForProduction(),
|
| - typeSystem = typeSystem ?? new TypeSystemImpl();
|
| + typeSystem = typeSystem ?? new TypeSystemImpl(typeProvider);
|
|
|
| /**
|
| * Check that the arguments to a call to fromEnvironment() are correct. The
|
| @@ -1293,8 +1293,7 @@ class ConstantVisitor extends UnifyingAstVisitor<DartObjectImpl> {
|
| ParameterizedType thenType = thenResult.type;
|
| ParameterizedType elseType = elseResult.type;
|
| return new DartObjectImpl.validWithUnknownValue(
|
| - _typeSystem.getLeastUpperBound(_typeProvider, thenType, elseType)
|
| - as InterfaceType);
|
| + _typeSystem.getLeastUpperBound(thenType, elseType) as InterfaceType);
|
| }
|
|
|
| @override
|
|
|