Commit 7cc466d
authored
Error on UDT enums with 0-element tuple variants (#863)
### What
Emit a compiler error when creating UDT enums with 0-element tuple
variants.
### Why
Per #861, making
empty-tuple variants and unit-variants unambiguous would introduce new
complexity for anybody interpreting the XDR specs, so we just disallow
the presumably rare empty-tuple variant form.
### Known limitations
Hard to test compiler errors. Tested manually.
Fixes #8611 parent 7da5c73 commit 7cc466d
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | | - | |
62 | | - | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
0 commit comments