Repository navigation
Commit 3e73414
fixup! feat:
`yield!` of an array of struct pairs and of a frozen map in `frozenMap { }` had no check, so a `null`
input failed with `NullReferenceException` when the buffer enumerated it, inside `Run`. The two members
now throw `ArgumentNullException` that names the parameter (`pairs`, `table`) when the expression runs
them, as `yield!` of a sequence does (ADR 0001, D6), and their `<exception>` tags say so.
The other inputs of `FrozenMapCE` need no check: they are functions that the compiler creates from the
expression, and the resource of `use`, which F# accepts as `null`.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>FrozenMap module with the vocabulary of the FSharp.Core Map module1 parent 747d98c commit 3e73414
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
0 commit comments