try
try copied to clipboard
"args" in Main(string[] args) is null
Describe the bug
I have opened try.dot.net web site and ran next code:
internal static class App
{
private static void Main(string[] args) => System.Diagnostics.Debug.Assert(args != null, $"{nameof(args)} != null");
}
Did this error occur while using dotnet try or online?
- [ ]
dotnet-try - [x] online
What kind of error was it?
- [ ] User Interface (UI): For example the output never displayed
- [ ] Service Error: For example "The service is temporarily unavailable. We are working on it"
- [x] Other: "Run" command prints
Fail: args != null, soargsparameter of theMainmethod isnull.
Please complete the following:
- OS
- [ ] Windows 10
- [x] macOS 10.12.6 (16G2128)
- [ ] Linux (Please specify distro)
- [ ] iOS
- [ ] Android
- Browser
- [x] Chrome 76.0.3809.100
- [ ] Edge
- [ ] Safari