Find a file
Erik Ernst 0c187585c5 Added return-void-2-dynamic to whitelist of generalized-void.md
We need to clarify the following case:
`dynamic foo() => print('');`,
`dynamic bar() { return print(''); }`
that is, using `return e` where `e` has type `void`, when the return
type of the enclosing function is `dynamic` (inferred or explicit).

We do not currently have any elements in the generalized-void.md
whitelist for that, so it's an error. However, invalid_returns.md
from https://dart-review.googlesource.com/c/sdk/+/60401 implies
(patchset 6: line 19-20 and 34-35) that it is allowed.
It is my impression that we agree on invalid_returns.md, and also
that it describes the current behavior (maybe not 100%?).

This indicates to me that we should, probably, add an element to
the above-mentioned whitelist to allow it.

This CL makes that change to generalized-void.md.

Change-Id: I0326081960deda907b3b4ff34bd2d60f7c9dc35b
Reviewed-on: https://dart-review.googlesource.com/64341
Reviewed-by: Erik Ernst <eernst@google.com>
2018-08-01 12:18:07 +00:00
.github Update the move metadata file. 2018-07-12 17:34:43 +00:00
build [build] Copy Observatory assets with GN rather than observatory_tool.py 2018-07-10 19:08:47 +00:00
client Remove old annotated_steps buildbot scripts and dispatcher 2017-05-23 16:17:02 +02:00
docs Added return-void-2-dynamic to whitelist of generalized-void.md 2018-08-01 12:18:07 +00:00
pkg [Test.dart] Use Compiler, Runtime, etc. classes from pkg:smith. 2018-08-01 09:45:17 +00:00
runtime [vm/compiler] Non-speculative X64 long division/remainder. 2018-08-01 00:13:55 +00:00
samples [build] Add -a kbc for interpreter 2018-07-17 21:51:41 +00:00
samples-dev Fix swarm sample. 2018-07-19 20:16:47 +00:00
sdk Remove the dart1 version of the analysis server snapshot. 2018-07-30 20:13:27 +00:00
tests Change a few language_2 tests to comply with reality 2018-08-01 11:03:12 +00:00
third_party Update unittest to 0.11.x. Check out unittest from chromium.googlesource. 2018-07-17 12:18:48 +00:00
tools [Test.dart] Use Compiler, Runtime, etc. classes from pkg:smith. 2018-08-01 09:45:17 +00:00
utils [VM] Adjust flags for creating depfiles 2018-07-31 17:09:31 +00:00
.clang-format VM: Re-format to use at most one newline between functions 2017-07-13 08:08:37 -07:00
.gitattributes [infra] Add config for custom hunk text when using git diff on status files 2018-05-31 13:56:45 +00:00
.gitconfig [infra] Add documentation to .gitconfig 2018-06-11 18:24:16 +00:00
.gitignore Git ignore vscode project files. 2017-03-23 15:26:06 -07:00
.gn
.mailmap
.packages First stab at a parsing library for named configurations. 2018-06-26 22:17:08 +00:00
AUTHORS
BUILD.gn Revert "Reland "[VM/SDK]"" 2018-07-23 18:07:29 +00:00
CHANGELOG.md Remove deprecated SDK constant declarations. 2018-07-18 13:05:00 +00:00
codereview.settings Update codereview.settings to Gerrit (dart-review.googlesource.com) 2017-09-04 12:52:09 +00:00
dartdoc_options.yaml Add a 'Core' category for doc generation. 2018-06-07 14:47:41 +00:00
DEPS Update package:test_reflective_loader. 2018-08-01 00:20:45 +00:00
LICENSE
PATENTS
PRESUBMIT.py Fix presubmit on Windows. Dart executable is not called .bat 2018-05-02 08:40:59 +00:00
README.dart-sdk
README.md [gardening] Whitespace change to trigger bots. 2017-04-28 10:08:58 -07:00
WATCHLISTS CC sra also in changes to compiler files and tests 2018-07-31 18:27:19 +00:00

Dart

Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.

Using Dart

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.

Building Dart

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.

Contributing to Dart

The easiest way to contribute to Dart is to file issues.

You can also contribute patches, as described in Contributing.

License & patents

See LICENSE and PATENTS.