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 generic overloads with nullable #10582

Merged
merged 5 commits into from
Dec 2, 2020

Conversation

TIHan
Copy link
Contributor

@TIHan TIHan commented Dec 2, 2020

This should resolve this: #10547

Let's see if it passes CI. From my understanding, we were creating a new inference variable at the beginning of inference when adjusting called args. If the calledarg's ty is nullable of a inference type variable, we should just return that type variable instead of creating a new one if the called arg is not optional.

@TIHan TIHan requested a review from dsyme December 2, 2020 01:48
Copy link
Member

@KevinRansom KevinRansom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@cartermp cartermp merged commit 539d5ab into dotnet:main Dec 2, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
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.

3 participants