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

Remove support for inferring the return type of a local function. #7916

Merged
merged 1 commit into from
Jan 14, 2016

Conversation

gafter
Copy link
Member

@gafter gafter commented Jan 13, 2016

Fixes #7832

@dotnet/roslyn-compiler Please review.

@gafter gafter added Area-Compilers 4 - In Review A fix for the issue is submitted for review. labels Jan 13, 2016
@gafter gafter self-assigned this Jan 13, 2016
@gafter gafter added this to the 2.0 milestone Jan 13, 2016
// Specifically, the Interlocked.CompareExchange above succeeds, and will be seen by
// other threads, before the diagnostics have been recorded in this symbol, below.
// We can resolve this with a lock around this method and any other methods that
// manipulate _diagnostics, directly or indirectly.
AddDiagnostics(diagnostics.ToReadOnlyAndFree());
Copy link
Member

Choose a reason for hiding this comment

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

Consider logging a bug for TODO.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done (#7938)

@cston
Copy link
Member

cston commented Jan 13, 2016

LGTM

@davkean
Copy link
Member

davkean commented Jan 13, 2016

@dotnet-bot retest prtest/win/dbg/unit32 please
// Previous failure: http://dotnet-ci.cloudapp.net/job/roslyn_prtest_win_dbg_unit32/2727/
// Retest reason: build break

@TyOverby
Copy link
Contributor

The TODO should include a link to the bug. Otherwise LGTM

@gafter
Copy link
Member Author

gafter commented Jan 14, 2016

I'm not sure about links from the compiler code to github. That would be a new precedent. On the other hand, it would make it easier to know which TODOs have already been made into issues.

We're not likely to edit existing TODOs as we file issues for them, so I'd prefer to keep it this way.

gafter added a commit that referenced this pull request Jan 14, 2016
Remove support for inferring the return type of a local function.
@gafter gafter merged commit b94e2cd into dotnet:future Jan 14, 2016
@gafter gafter removed the 4 - In Review A fix for the issue is submitted for review. label Jan 14, 2016
agocke added a commit to agocke/roslyn that referenced this pull request Jun 14, 2016
Support for using `var` in a local function return type was already
removed in PR dotnet#7916. This PR adds a test to verify that.

Closes dotnet#10392.
agocke added a commit to agocke/roslyn that referenced this pull request Jun 15, 2016
Support for using `var` in a local function return type was already
removed in PR dotnet#7916. This PR adds a test to verify that.

Closes dotnet#10392.
agocke added a commit that referenced this pull request Jun 15, 2016
Support for using `var` in a local function return type was already
removed in PR #7916. This PR adds a test to verify that.

Closes #10392.
@gafter gafter deleted the fix7832 branch May 24, 2018 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants