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

Regression: Fix int and float compatibility in union types #559

Merged

Conversation

NanoSector
Copy link
Contributor

This was broken in commit
0479532 as withType may be called in union type context.
First calling withValue() to set an int value and then updating the type with withType() does not trigger the float cast, in turn causing a mapping error.

Developed by: Social Deal (@socialdeal)

@NanoSector NanoSector force-pushed the bugfix/fix-float-and-int-compatibility-in-union branch from 6f7a9cb to db1d88d Compare September 9, 2024 07:52
@NanoSector NanoSector changed the title Fix int and float compatibility in union types Regression: Fix int and float compatibility in union types Sep 9, 2024
@romm
Copy link
Member

romm commented Sep 16, 2024

Hi @NanoSector, thanks for the contribution. I don't have rights to merge this PR as it is owned by @socialdeal (thanks for the fix sponsoring btw). This is a GitHub limitation.

Could you:

a. Temporarily add rights to me on the repository fork so I can rebase it on master and merge it or…
b. …recreate this PR with a fork on your own account?

Thanks!

@NanoSector
Copy link
Contributor Author

NanoSector commented Sep 16, 2024

@romm Thanks for the heads-up! This is interesting, can you share what GitHub is showing you and why this would differ with a personal repository? We are experimenting with workflows in our organisation.

In the meantime I'll manually rebase this PR on master.

This was broken in commit
CuyZ@0479532
as withType may be called in union type context.
First calling withValue() to set an int value and then updating the type
with withType() does not trigger the float cast, in turn causing a
mapping error.

Developed by: Social Deal (@socialdeal)
@NanoSector NanoSector force-pushed the bugfix/fix-float-and-int-compatibility-in-union branch from db1d88d to 9dd83fc Compare September 16, 2024 18:49
@romm romm merged commit 8742b27 into CuyZ:master Sep 16, 2024
11 checks passed
@romm
Copy link
Member

romm commented Sep 16, 2024

Thanks!

FYI, this is a long-known issue from GitHub, external organization developers cannot push on branches owned by this very organization, see https://github.com/orgs/community/discussions/5634

It is irritating when I have to do further development on someone's work, luckily I had no modification to do on your branch, so a rebase on master was enough

@NanoSector NanoSector deleted the bugfix/fix-float-and-int-compatibility-in-union branch September 16, 2024 19:03
@NanoSector
Copy link
Contributor Author

I see, thank you, that is really good to know. I'll share this with the rest of the team, this sounds highly impractical...

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