diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-03 23:12:18 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-03 23:12:18 -0700 |
| commit | 63c5c510b1a083fbbca4145b1b53d39da9b0fd81 (patch) | |
| tree | fc00c36767b6c15a444ec5c57f69778517ac740b /test/behavior/array.zig | |
| parent | 26be5bb8b1e1c05ceab4b7620efa2a058a174886 (diff) | |
| download | zig-63c5c510b1a083fbbca4145b1b53d39da9b0fd81.tar.gz zig-63c5c510b1a083fbbca4145b1b53d39da9b0fd81.zip | |
Sema: rework peer type logic for pointers
Now it's centered around a switch on the chosen type tag which gives us
easy access to pointer data.
The logic is simplied and in some cases logic is removed when it is
sufficient to choose the type that is a better coercion target without
knowing whether such coercion will succeed ahead of time.
A bug is fixed at the bottom of the function; we were doing the opposite
of what we were supposed to with `seen_const`.
Also the bottom of the function has a more complete handling of the
possible combinations of `any_are_null`, `convert_to_slice`, and
`err_set_ty`.
In the behavior tests, not as many backends needed to be skipped.
Diffstat (limited to 'test/behavior/array.zig')
0 files changed, 0 insertions, 0 deletions
