commit | f609258f3fd81c5c347d8f91d25e96485f501186 | [log] [tgz] |
---|---|---|
author | Jens Johansen <jensj@google.com> | Tue Aug 07 06:35:28 2018 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Tue Aug 07 06:35:28 2018 +0000 |
tree | a0c32e0ee2625a45d2110fcfdd0a291c22b405bb | |
parent | f754b8c5720cfde014adf4a7b12e8ca063584faf [diff] |
Use the position on as when issuing AssertAssignable for as E.g. the following program gives a type error, but previously didn't tell what line had an error. This CL fixes the issue. ``` import "dart:async"; Future<Object> foo() { return Future.value("hello"); } main() async { int x = await foo(); } ``` Change-Id: I27ae483b8b7ca63b9efac555a5cbc651296f227a Reviewed-on: https://dart-review.googlesource.com/68367 Reviewed-by: Kevin Millikin <kmillikin@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.