| 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 851a990b6e30b4c3ad4d465687bf3dbd87021b63..42ca0282b6d6391a474f9d4c2680f02be457a228 100644
|
| --- a/pkg/analyzer/lib/src/generated/type_system.dart
|
| +++ b/pkg/analyzer/lib/src/generated/type_system.dart
|
| @@ -284,18 +284,15 @@ class StrongTypeSystemImpl implements TypeSystem {
|
| /**
|
| * Check that [f1] is a subtype of [f2].
|
| *
|
| - * [fuzzyArrows] indicates whether or not the f1 and f2 should be
|
| - * treated as fuzzy arrow types (and hence dynamic parameters to f2 treated
|
| - * as bottom).
|
| + * This will always assume function types use fuzzy arrows, in other words
|
| + * that dynamic parameters of f1 and f2 are treated as bottom.
|
| */
|
| - bool _isFunctionSubtypeOf(FunctionType f1, FunctionType f2,
|
| - {bool fuzzyArrows: true}) {
|
| -
|
| + bool _isFunctionSubtypeOf(FunctionType f1, FunctionType f2) {
|
| return FunctionTypeImpl.relate(
|
| f1,
|
| f2,
|
| (DartType t1, DartType t2) =>
|
| - _isSubtypeOf(t2, t1, null, dynamicIsBottom: fuzzyArrows),
|
| + _isSubtypeOf(t2, t1, null, dynamicIsBottom: true),
|
| instantiateToBounds,
|
| returnRelation: isSubtypeOf);
|
| }
|
|
|