-
Notifications
You must be signed in to change notification settings - Fork 1.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
GenAPI drops ref keyword when generating reference source for System.Memory/4.5.5 #38166
Comments
That's odd - it should treat it as ref - though in this case it looks like the assembly defined |
Hmm, I see plenty of evidence that this never worked, but I'm at a loss for why not and why we didn't have an existing issue / discussion around it. I see the bug in roslyn that we need to fix to support it, so I'll give that a try and see if I run into any problems or rediscover past issues. |
This was fixed in #38179. We'll be able to remove the workaround that added when we ingest the new roslyn with the fix. |
Source-build might be building against the very latest roslyn. Do we need to adjust the code path for source-build only? |
Actually disregard. For GenAPI, source-build and non source-build both use the very latest roslyn so we shouldn't get into an inconsistent state between build variants. |
I made this work so that it's OK if a newer roslyn meets up before we remove the assert, the assert should only pop during testing. |
Repro: `./generate.sh --package System.Memory,4.5.5
Observe changes in src/referencePackages/src/system.memory/4.5.5/lib/netstandard2.0/System.Memory.cs
GenAPI drops the
ref
keyword from structs likeReadOnlySpan<T>
.cc @ericstj
The text was updated successfully, but these errors were encountered: