Chromium Code Reviews| Index: pkg/analyzer/lib/src/generated/static_type_analyzer.dart |
| diff --git a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart |
| index 2f1e1599d39d4612be6f1f3fed664e0c67927086..173b03599ee20ec3d0b8ee228f171271b40dbda9 100644 |
| --- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart |
| +++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart |
| @@ -1909,7 +1909,7 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> { |
| ts is StrongTypeSystemImpl) { |
| return ts.inferFunctionTypeInstantiation(context, type); |
| } |
| - } else { |
| + } else if (type is FunctionType) { |
|
Jennifer Messerly
2017/01/10 19:00:48
oops :D
|
| // In Dart 1 mode we want to implicitly instantiate generic functions to |
| // their bounds always, so we don't get a universal function type. |
| return _typeSystem.instantiateToBounds(type); |