try icon indicating copy to clipboard operation
try copied to clipboard

"args" in Main(string[] args) is null

Open ViIvanov opened this issue 6 years ago • 0 comments

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, so args parameter of the Main method is null.

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

ViIvanov avatar Aug 21 '19 21:08 ViIvanov