-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Ref returns/locals: Crash typing "ref" in any type #8402
Labels
Area-Compilers
Bug
Feature - Ref Locals and Returns
Ref Locals and Returns
Verification Not Required
Milestone
Comments
/cc: @VSadov |
Also fails in abstract classes. |
dpoeschl
changed the title
Ref returns and locals: Crash typing "ref" in an interface
Ref returns and locals: Crash typing "ref" in any type
Feb 5, 2016
Actually, also failing in regular classes. It was working for me earlier because I was copy/pasting and editing the sample method, which works great. public static ref S Choose(ref S s1, ref S s2)
{
if (…) return ref s1;
else return ref s2;
} |
Uhm :-( |
dpoeschl
changed the title
Ref returns and locals: Crash typing "ref" in any type
Ref returns/locals: Crash typing "ref" in any type
Feb 6, 2016
Fix verified against VSadov@cca5f47 |
I guess this can be closed then. |
VSadov
added a commit
to VSadov/roslyn
that referenced
this issue
Feb 18, 2016
member declaration parse should not be considered not advanced when "ref" keyword was consumed. Fixes dotnet#8402
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area-Compilers
Bug
Feature - Ref Locals and Returns
Ref Locals and Returns
Verification Not Required
Tested against 842f5ad4309e370b763ee87de305ad012dcdda06 from #8030
Type
ref
inside an interface:VS Crash, Null Reference Exception. The null variable in
AddSkippedSyntax
is theskippedSyntax
passed in.The text was updated successfully, but these errors were encountered: