Skip to content

Fix generic overloads with nullable#10582

Merged
cartermp merged 5 commits intodotnet:mainfrom
TIHan:nullable-optional-generic-overload-fix
Dec 2, 2020
Merged

Fix generic overloads with nullable#10582
cartermp merged 5 commits intodotnet:mainfrom
TIHan:nullable-optional-generic-overload-fix

Conversation

@TIHan
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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