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

Add tests showing code that fails in 1.5 that worked in 1.4 #675

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

osmestad
Copy link

@osmestad osmestad commented Dec 2, 2022

It seems the type inferencing changes on arguments in 1.5 breaks a few patterns in our code.

Added two examples with call where the argument passed is part of a union of values, this now fails as type errors. For strings I'm able to work around it with using as const, but for numbers I do not think that is possible.

I had a look at the code changes in #654 but I'm not sure if there is any easy way to fix this?

It seems the type inferencing changes on arguments in 1.5 breaks a few patterns in our code.

Added two examples with `call` where the argument passed is part of a union of values, this now fails as type errors. For strings I'm able to work around it with using `as const`, but for numbers I do not think that is possible.
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.

1 participant