-
Notifications
You must be signed in to change notification settings - Fork 205
roles/extensions branch is not working #1335
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
Comments
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. |
…o load Roslyn internals
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. |
any progress on this? |
+1 interest feedback. |
…o load Roslyn internals
Since the extensions have been merged into the main branch, I will close this issue, hoping that we will be able to try them on the main branch in the future. |
But main branch is also broken... |
That is sad, but it is a separate issue. Leaving this issue open will not help to resolve the problem. |
I think that only the maintainer should make such considerations. You opened the issue and the problem you verified is still present, without the maintainer telling you if e.g. a problem was solved and another problem emerged. There is currently no reason to close it. |
FYI: This compiles! var val = 100;
Console.WriteLine(val.mm); // Outputs: 1
public static class UnitExtensions
{
extension(int val)
{
public int mm => 1;
}
} |
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
The text was updated successfully, but these errors were encountered: