-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new allowed placements of void expressions for void-to-void flow.
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>
- Loading branch information
Showing
1 changed file
with
107 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters