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

Add Accessibility modifier removes "ref" from a ref struct #22240

Closed
VSadov opened this issue Sep 21, 2017 · 1 comment
Closed

Add Accessibility modifier removes "ref" from a ref struct #22240

VSadov opened this issue Sep 21, 2017 · 1 comment

Comments

@VSadov
Copy link
Member

VSadov commented Sep 21, 2017

Invoke Refactor/Add Accessibility modifiers on

readonly unsafe ref struct S1 { }

The dialog offers adding "private", but also offers to remove "ref"

@OmarTawfik
Copy link
Contributor

Root cause: classes in src/Workspaces/CSharp/Portable/CodeGeneration don't use compiler helpers to generate refness of signatures, but instead do independent checks. Need to look deeper into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants