Skip to content

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

Open
osmestad wants to merge 1 commit intoagiledigital:masterfrom
osmestad:arguments-type-regression
Open

Add tests showing code that fails in 1.5 that worked in 1.4#675
osmestad wants to merge 1 commit intoagiledigital:masterfrom
osmestad:arguments-type-regression

Conversation

@osmestad
Copy link
Copy Markdown

@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