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

Revision 0.32.31 #881

Merged
merged 2 commits into from
May 24, 2024
Merged

Revision 0.32.31 #881

merged 2 commits into from
May 24, 2024

Conversation

sinclairzx81
Copy link
Owner

This PR implements a fix on Value.Cast to dereference Union variants before scoring them. This is required as the current Union differentiation algorithm only works on instances of TObject and where fall through cases (for example TRef) would blindly score referenced objects with a binary 0 or 1 value.

It was observed that in fall through cases where no variants match the value, the first union variant was selected.

Fixes #880

@sinclairzx81 sinclairzx81 merged commit 95d5a3e into master May 24, 2024
18 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.

Value.Cast casts to wrong schema when called with union of Refs
1 participant