commit | 284b5cce55f96dad08d3402dacae5e81f1e9351a | [log] [tgz] |
---|---|---|
author | Mike Fairhurst <mfairhurst@google.com> | Mon Jun 25 15:56:06 2018 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Mon Jun 25 15:56:06 2018 +0000 |
tree | 8b6d5ba27ec5e96da490dfa6c0df1aaf44067682 | |
parent | ada8188b733fabc105110af42bbe484b3abdbf39 [diff] |
Partial fix of #33343. Reject generic function types as bounds. Does not handle the other half of #33343, rejecting generic function types as type arguments. This revealed a secondary minor issue which was easy enough to fix. Type arguments were not resolved within bounds: class C<T extends S Function<S>(S)> {} this would report 'undefined class S' for the return and parameter types `S`. I almost split this into a separate CL, but, these two CLs are tied together inherently by the tests case. Easy to solve at once. Bug: 33343 Change-Id: Ib34a04d90be08d8d6c6f21a9d485a452017585ba Reviewed-on: https://dart-review.googlesource.com/61103 Commit-Queue: Mike Fairhurst <mfairhurst@google.com> Reviewed-by: Paul Berry <paulberry@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.