diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2020-07-08 00:53:19 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-07-08 19:32:15 +0000 |
| commit | f77c968cf841046238eb37f54600cda201f09ce2 (patch) | |
| tree | 49221c678e9037ec5f305ebac52dcf3c64e069f5 /lib/std/array_list.zig | |
| parent | eeae3a8f9df49e53392bcd7b04b463f6bffcec9c (diff) | |
| download | zig-f77c968cf841046238eb37f54600cda201f09ce2.tar.gz zig-f77c968cf841046238eb37f54600cda201f09ce2.zip | |
langref: Add test case for "if error union with optional"
This is an edge case that isn't too uncommon but is rather confusing to try to deduce without documentation, since it feels like `else` is being overloaded in this scenario and there's no obvious 'correct' behavior here. This just adds a test demonstrating how Zig currently behaves in this scenario.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions
