Index: sdk/lib/_internal/compiler/implementation/inferrer/closure_tracer.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/inferrer/closure_tracer.dart (revision 31225) |
+++ sdk/lib/_internal/compiler/implementation/inferrer/closure_tracer.dart (working copy) |
@@ -54,6 +54,11 @@ |
if (called.isForeign(compiler) && called.name == 'JS') { |
bailout('Used in JS ${info.call}'); |
} |
+ if (inferrer.types.getInferredTypeOf(called) == currentUser) { |
+ // This node can be a closure call as well. For example, `foo()` |
+ // where `foo` is a getter. |
+ analyzeCall(info); |
+ } |
} |
bool checkIfCurrentUser(element) { |