ashmind / SharpLab

.NET language playground
https://sharplab.io
BSD 2-Clause "Simplified" License
2.73k stars 202 forks source link

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

Closed jnm2 closed 4 days ago

jnm2 commented 2 months ago

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 commented 1 month ago

any progress on this ?

jnm2 commented 1 month ago

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

julealgon commented 1 month ago

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

chillitom commented 1 week ago

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

ashmind commented 4 days ago

This is now resolved, thanks for reporting.

KeterSCP commented 3 days ago

Hi @ashmind! The new syntax is available only on main branch. But for Default/X64 it is still not updated. Is this expected?

ashmind commented 3 days ago

@KeterSCP Good question: Default is a separate (manual) update -- I'll track in #1351.