Skip to content

Commit

Permalink
Refactor use_of_void tests
Browse files Browse the repository at this point in the history
* Merge pre-NNBD tests with other tests; remove duplicates.
* Avoid using `main` in tests. Avoid declaring an unused variable.
* Change expectations of using void the left or right side of a
  conditional expression. These are explicitly allowed by the spec.
* Remove some comments about strong mode.

Change-Id: Iad9f3c37bde83b29ba82b0d671659a3330ca151e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/337843
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
  • Loading branch information
srawlins authored and Commit Queue committed Nov 27, 2023
1 parent 0833395 commit 4c579f9
Showing 1 changed file with 138 additions and 218 deletions.
Loading

0 comments on commit 4c579f9

Please sign in to comment.