try
try copied to clipboard
Update Try .NET to support new C# features.
I agree. New features like nullable reference types aren't allowed.
This causes this message "The feature 'nullable reference types' is currently in Preview and unsupported. To use Preview features, use the 'preview' language version".
I think language version should have a default but the user should be able to choose a langversion especially in their own embed of try.net
Nullability is allowed, Nullable reference types are not.
There are quite a few C# language features that currently aren't supported. At this point, even using Top Level Functions appears to be broken:
Since the .Net exercises (https://learn.microsoft.com/en-us/training/modules/csharp-write-first/2-exercise-hello-world) support top level statements, and are supposedly based on stuff from this repo (??) things are even more confusing.
I came here with the same confusion as the previous comment. Top level statements are not working on try.dot.net, but they seem to be working in the Microsoft Learn page that embeds it to teach them!