Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix std.testing.expectEqual, std.meta.eql for comptime-only unions #20343

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

rohlem
Copy link
Contributor

@rohlem rohlem commented Jun 18, 2024

closes #20342 , previously failing test code is included.

rohlem added 2 commits June 18, 2024 19:01
switch from `inline for` with `std.mem.eql`
to `inline else` and tag comparison;
expectEqualDeep(Inner) was already doing this.

add a previously-failing test case.
switch from `inline for` with `std.mem.eql`
to `inline else` and tag comparison.

add previously-failing test code.
@Vexu Vexu merged commit 7dc52a3 into ziglang:master Jun 18, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

std.testing.expectEqual doesn't compile for union with comptime-only field
2 participants