ashmind / SharpLab

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

roles/extensions branch is not working #1335

Open aetos382 opened 1 month ago

aetos382 commented 1 month ago

When I select the Roles/Extensions branch, I get a message that says connection lost, reconnecting... and the screen goes grey and doesn't come back.

When I look at the browser console, a 404 is returned for requests to the following URL. Could this be the cause?

https://slpublic.azureedge.net/cache/main/sl-b-dotnet-features-roles/a98330204b5d6e806f3b69ff241752d9d1c9ddc6c4e65c17f203dd3c69c92be1.json

ashmind commented 1 month ago

Thanks for reporting! This one might be a bit tricky -- I'll take a look when I have a moment, but can't promise it will be soon.

Ciantic commented 1 month ago

I'm dying to know if this is valid C# 13:


using System;

Console.WriteLine(15.inch + 2.cm * 15.mm);

implicit extension TestUnits for int {
    public double mm => (double) this;
    public double inch => (double) this * (double) 25.4;
    public double cm => (double) this * (double) 10;
}

Absolute game changer for fans of units.

BarionLP commented 1 month ago

any progress on this?

wherewhere commented 2 weeks ago

Want extension... 😞

ceztko commented 2 weeks ago

+1 interest feedback.