commit | b803d74c9b0ac14b66555b7735d58b0ccc0e300a | [log] [tgz] |
---|---|---|
author | Erik Ernst <eernst@google.com> | Tue Jul 03 12:08:31 2018 +0000 |
committer | Erik Ernst <eernst@google.com> | Tue Jul 03 12:08:31 2018 +0000 |
tree | ccc904e8f12902d43e96a25bd0834f3abde4bc13 | |
parent | c407e83d0e2cfc75a660445b6fed28ec7ddefb95 [diff] |
Adjusted errors for FutureOr in class headers We did not previously prevent `class C implements FutureOr<int> ..` and similar declarations. However, it offers only very little value to allow this, and possibly creates some complications. This CL makes all these subtype relationships a compile-time error. The wording of the constraint on `\WITH{} clause` was also adjusted to remove some potential interpretations which are unintended (like preventing `with List<dynamic>`, which should be OK). Change-Id: I626c2767befa7a3cb3092b0ba5cb463e9456d431 Reviewed-on: https://dart-review.googlesource.com/63583 Reviewed-by: Lasse R.H. Nielsen <lrn@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.