Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: pkg/analyzer/lib/src/generated/static_type_analyzer.dart

Issue 2622953002: fix regression to analysis_server tests (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698