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

fix is inference taking into account that unions imply nil #699

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Conversation

hishamhm
Copy link
Member

This behavior will change one day when we make types not imply nil, but for now we need to be consistent with the fact that they do.

So silence the warning on the last elseif V is T and drop the error in the else case.

Fixes #695.

This behavior will change one day when we make types not imply nil,
but for now we need to be consistent with the fact that they do.

So silence the warning on the last `elseif V is T` and drop the
error in the `else` case.

Fixes #695.
@github-actions
Copy link

Teal Playground URL: https://699--teal-playground-preview.netlify.app

@hishamhm hishamhm merged commit 3f13595 into master Sep 13, 2023
8 checks passed
@hishamhm hishamhm deleted the fix-695 branch September 13, 2023 22:35
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.

spurious error "cannot resolve a type" with union
1 participant