Skip to content

Conversation

@lalinsky
Copy link
Owner

Summary

  • Replace == with std.meta.eql() in isStructFieldUsed function to handle optional struct fields and other complex types that don't support direct equality comparison
  • Add test case for optional struct field with null default value

Test plan

  • Added test case that reproduces the issue and verifies the fix
  • All existing struct tests continue to pass
  • New test passes with the fix

Replace == with std.meta.eql() in isStructFieldUsed to handle
optional struct fields and other types that don't support direct
equality comparison. Includes test case for optional struct field
with null default value.
@lalinsky lalinsky merged commit 501eb31 into main Aug 19, 2025
2 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.

2 participants