Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Nullable: make Object.ToString() return nullable #23510

Merged
merged 1 commit into from
Mar 28, 2019

Conversation

safern
Copy link
Member

@safern safern commented Mar 28, 2019

@krwq with this warn disabled you should be able to now annotate overrides correctly, the ones you had to workaround in you previous PRs.

cc: @jaredpar @jcouv @terrajobst

@terrajobst
Copy link
Member

I thought we went with saying object.ToString() should be non-null. What changed?

@stephentoub
Copy link
Member

#23466 (comment)

@safern safern force-pushed the ObjectToString branch 2 times, most recently from 5831a1b to eebcec5 Compare March 28, 2019 04:33
@safern
Copy link
Member Author

safern commented Mar 28, 2019

Will hold this PR until we come to the final decision on whether we should make its return type nullable or not.

@safern
Copy link
Member Author

safern commented Mar 28, 2019

Actually spoke with @stephentoub offline, will merge, since discussions are going on and we need to discuss more to come to a final decision. Since returning nullable was the behavior before turning on the switch, I'm going to merge and we can revisit if needed after the meeting.

@safern safern merged commit 1cdbdb0 into dotnet:NullableFeature Mar 28, 2019
@safern safern deleted the ObjectToString branch March 28, 2019 19:15
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/corefx that referenced this pull request Apr 5, 2019
stephentoub pushed a commit to dotnet/corefx that referenced this pull request Apr 6, 2019
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/corert that referenced this pull request Apr 9, 2019
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/corert that referenced this pull request Apr 9, 2019
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/mono that referenced this pull request Apr 9, 2019
Anipik pushed a commit to Dotnet-GitSync-Bot/corert that referenced this pull request Apr 9, 2019
jkotas pushed a commit to dotnet/corert that referenced this pull request Apr 10, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants