commit | 1577b95c93823339150736e8c54f4524da4339be | [log] [tgz] |
---|---|---|
author | Johnni Winther <johnniwinther@google.com> | Thu May 02 13:14:21 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Thu May 02 13:14:21 2019 +0000 |
tree | 494327e1ac22032be2a82290c36222e1267211ef | |
parent | 8c2390089e5d521d1f7f4ce77402400cc7cc20ad [diff] |
[CFE] Substitute types in unevaluated as-expressions and instantiations As expressions and instantiations lose the connection to the current type environment when put into an unevaluated constant expression. This leaves type variables unsubstituted when the expressions are lazily evaluated leading to invalid compile-time errors. This is avoided by substituting the type variable when creating the unevaluated constant. If the type variables are not substituted by concrete types, this is flagged as a valid compile-time error during the lazy evaluation. Change-Id: I46264da4332ea1d5b783531d89a5e6f85b8f90e4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100963 Reviewed-by: Aske Simon Christensen <askesc@google.com> Commit-Queue: Johnni Winther <johnniwinther@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.