mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:07:11 +00:00
7d07f8d68b
As an example of a void-to-void data flow, consider `void x = foo();`, where `foo` has return type `void`. In general, a void-to-void data flow is a computation which is trivial (we may select one of two branches in a conditional expression and otherwise only pass the value on without any computation) where the expression being evaluated has type void, and the target that receives the value is also of type void. This CL makes adjustments to generalized-void.md such that void-to-void data flows are allowed. Change-Id: Ia1722cd399c77c57cc5c61e9c10b7a84a18fe107 Reviewed-on: https://dart-review.googlesource.com/38060 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Leaf Petersen <leafp@google.com> Commit-Queue: Erik Ernst <eernst@google.com> |
||
---|---|---|
.. | ||
language | ||
newsletter |