Commit baacbb1
authored
This PR adds a clarification to the `void` allowlist, specifying explicitly that `e1` can have type `void` in the case where `e0[e1]` is encountered and the statically known operator `[]` of `e1` has a parameter whose type is `void`, and similarly for `e0[e1] = e2` where both `e1` and `e2` can have type `void` when the corresponding formal parameters have type `void`. It also clarifies that the same rule applies to setters. Finally, it clarifies the item about local variable / parameter assignments.
This PR also changes the word 'parameter' to 'argument' in the same item, in a location where it is clearly intended to refer to an actual argument, not a formal parameter.
See also dart-lang/sdk#57071.
1 parent bca4110 commit baacbb1
1 file changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
22873 | 22877 | | |
22874 | 22878 | | |
22875 | 22879 | | |
22876 | | - | |
| 22880 | + | |
22877 | 22881 | | |
22878 | 22882 | | |
22879 | 22883 | | |
| |||
22882 | 22886 | | |
22883 | 22887 | | |
22884 | 22888 | | |
| 22889 | + | |
| 22890 | + | |
| 22891 | + | |
| 22892 | + | |
| 22893 | + | |
| 22894 | + | |
| 22895 | + | |
| 22896 | + | |
| 22897 | + | |
| 22898 | + | |
| 22899 | + | |
| 22900 | + | |
| 22901 | + | |
| 22902 | + | |
22885 | 22903 | | |
22886 | 22904 | | |
22887 | | - | |
22888 | | - | |
| 22905 | + | |
| 22906 | + | |
| 22907 | + | |
22889 | 22908 | | |
22890 | 22909 | | |
22891 | | - | |
22892 | | - | |
| 22910 | + | |
22893 | 22911 | | |
22894 | 22912 | | |
22895 | 22913 | | |
| |||
0 commit comments