| Index: pkg/analyzer/lib/src/dart/element/type.dart
|
| diff --git a/pkg/analyzer/lib/src/dart/element/type.dart b/pkg/analyzer/lib/src/dart/element/type.dart
|
| index 32a12a59ae540f02077b3229773710ac3fe008d0..58932c67539f040f586fbae66425e1e7ab8c7e09 100644
|
| --- a/pkg/analyzer/lib/src/dart/element/type.dart
|
| +++ b/pkg/analyzer/lib/src/dart/element/type.dart
|
| @@ -828,7 +828,7 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
|
| type,
|
| (DartType t, DartType s, _, __) =>
|
| (t as TypeImpl).isMoreSpecificThan(s, withDynamic),
|
| - new TypeSystemImpl().instantiateToBounds);
|
| + new TypeSystemImpl(null).instantiateToBounds);
|
| }
|
|
|
| @override
|
| @@ -837,7 +837,7 @@ class FunctionTypeImpl extends TypeImpl implements FunctionType {
|
| this,
|
| type,
|
| (DartType t, DartType s, _, __) => t.isAssignableTo(s),
|
| - new TypeSystemImpl().instantiateToBounds);
|
| + new TypeSystemImpl(null).instantiateToBounds);
|
| }
|
|
|
| @override
|
| @@ -1945,7 +1945,7 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
|
| //
|
| if (element.library.context.analysisOptions.strongMode) {
|
| TypeImpl t = newTypeArguments[0];
|
| - newTypeArguments[0] = t.flattenFutures(new StrongTypeSystemImpl());
|
| + newTypeArguments[0] = t.flattenFutures(new StrongTypeSystemImpl(null));
|
| }
|
| }
|
|
|
| @@ -2148,8 +2148,7 @@ class InterfaceTypeImpl extends TypeImpl implements InterfaceType {
|
| return _leastUpperBound(first, second);
|
| }
|
| AnalysisContext context = first.element.context;
|
| - return context.typeSystem
|
| - .getLeastUpperBound(context.typeProvider, first, second);
|
| + return context.typeSystem.getLeastUpperBound(first, second);
|
| }
|
|
|
| /**
|
|
|