953399512a
To facilitate experimentation, I've left the old code in place, but disabled it using a const bool `fullTopLevelInference`. The old code can be re-enabled by setting this bool to `false`. Once we are sure that we want to proceed with this approach, we can remove the old code. I believe that with this change, all expressions that can be type inferred inside a method body can now be type inferred at top level, provided that there are no circular dependencies. R=sigmund@google.com Review-Url: https://codereview.chromium.org/2942153002 .