You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version Used: Visual studio 17.13.0, dotnet 9.0.100
Steps to Reproduce:
In a C# project, Include the following code
using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
List<string> things = ["Hello ", "World"];
var res = nameof(things[0]);
Console.WriteLine(res);
}
}
Build the project.
Diagnostic Id:
MSB6006: "csc.exe" exited with code -2146232797.
Expected Behavior: I expect nameof to either work here, or for the compiler to give me an error before I build.
Actual Behavior: Compiler crashes on build with the above error message.
The text was updated successfully, but these errors were encountered:
Version Used: Visual studio 17.13.0, dotnet 9.0.100
Steps to Reproduce:
Diagnostic Id:
MSB6006: "csc.exe" exited with code -2146232797.
Expected Behavior: I expect nameof to either work here, or for the compiler to give me an error before I build.
Actual Behavior: Compiler crashes on build with the above error message.
The text was updated successfully, but these errors were encountered: