25e87d9748
This records the actual point at which type inference fails and uses that to give a better error message. So where before we would say:
severe: line 76, column 38 of package:angular2/src/forms/directives.dart: [StaticTypeError] Type check failed: [c.validator, this.validator] (List<dynamic>) is not of type List<Function>
c.validator = validators.compose([c.validator, this.validator]);
we will now in addition say:
because c.validator cannot be typed as Function
BUG=
R=vsm@google.com
Review URL: https://codereview.chromium.org/1056183002
dev_compiler
This is an experimental Dart -> JavaScript compiler designed to create idiomatic, readable JavaScript output. We're investigating this because we want to enable easy debugging of Dart applications on all supported browsers.
The initial target for this work is Chrome, which is why there's an ES6 backend. Longer term, we plan to investigate supporting all browsers that Dart supports.