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

Please update main branch (stopped at 11 Jun 2024) #1343

Open
jnm2 opened this issue Sep 3, 2024 · 4 comments
Open

Please update main branch (stopped at 11 Jun 2024) #1343

jnm2 opened this issue Sep 3, 2024 · 4 comments

Comments

@jnm2
Copy link

jnm2 commented Sep 3, 2024

error CS9240: Target runtime doesn't support by-ref-like generics.

using System;

void M<T>(T disposable) where T : IDisposable, allows ref struct
{
    disposable.Dispose();
}

https://sharplab.io/#v2:EYLgtghglgdgNAFxANwKYCcoDMCeAfAAQCYBGAWAChKCAWAAgFkAeAFQD4AKFugEygGcADgHt+EYABtUASjoB3ABYZUdbiDoBJACICRYyajh0IEicLn866VFjr8E6AK4BjBJQDelOt967R4qQA6HSFRVA5pAG5KAF8gA

@John0King
Copy link

any progress on this ?

@jnm2
Copy link
Author

jnm2 commented Sep 29, 2024

@ashmind It seems that very shortly after the last fix you did to get main updating again, it froze again.

@julealgon
Copy link

I wanted to test some code using the new OverloadResolutionPriority attribute and hit the same limitation 😢

@chillitom
Copy link

dotnet 9/ C# 13 is out, would be great to have it included

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

No branches or pull requests

4 participants