SharpLab
SharpLab copied to clipboard
.NET language playground
I'm trying to see the generated code using the new [`GeneratedRegex` in .NET 7](https://devblogs.microsoft.com/dotnet/regular-expression-improvements-in-dotnet-7/#source-generation) ```cs using System.Text.RegularExpressions; public static partial class RegexExtensions { [GeneratedRegex($@"[abc]")] public static partial Regex IsABC(); }...
 When typing in the editor it will clear out while typing
https://slpublic.azureedge.net/cache/main/sl-b-dotnet-main/52a04496d45c5151a06333c8d61498ce0936447d8ecf5f8279f0701168e66c50.json fails to load with a 404 and it seems like as a result SharpLab does not work - it says the connection was lost and it never reconnects.
The only cases when surrounding whitespace characters being displayed correctly in syntax view are when there is only one tabulation character in whitespace sequence, or no tabulation characters at all....
The commercial at ('`@`') symbol, that can be used in symbol names, sometimes gets eaten when displaying the syntax tree, and sometimes not. The difference, as far as I can...
Accepting a suggestion removes everything in front of the cursor: https://github.com/user-attachments/assets/78ebd74d-d659-443d-851f-548ffa0eadab This happens on Tab and typing `.` or `(` when a suggested item is already typed. I'm using Firefox...
The [following code](https://sharplab.io/#v2:EYLgxg9gTgpgtADwGwBYA0AXEUCuA7AHwAEAmARgFgAoagWQAo8YB3AAgCUBlegSjVaZsuvHgG5qAegkNBrAMK9+shTzHVqRFK1oAeACoA+entYAbfiag9WzABYxYrEyFYBJORAC2ABwCGUX2BTGH0Dfl9TUwhmAGdWWAAzVhiMXDAMVmoAb0yqVnzWIjIATnpTADoPH38YPQh6KzUqAF91KlJ5Vhd3Lz8AoJC5A2zqAsKAZlYASzwMqr7a+rkAflYIDHsrVgBeA1YABnEWtqkiSZS0jK4ut3n/QOCdLmH2ycTk1Jx0jk4bnur+o9niM8gUztNZvJejU6vRrutNtZdtNWHA1hsHOUpkcxt4oFMAG6+DAwCEZKY7Di+PAAEy85U4thqNPKADkYAgMLwcQVRmDJsIeHz8llhaxWi0gA===): ```C# using System; M(new RS(), new RS()); //M(new C(), new C()); void M(T l, T r) where T : IComparable, allows ref struct { Console.WriteLine(l.CompareTo(r)); } class...
Maybe same as those other `static` related issues, but here I don't see a constructor... Should be fairly easy to support this? ```c# using System.Linq; using System.Collections.Generic; public class C...