Open TheLeftExit opened 2 years ago
Version Used: Microsoft Visual Studio Community 2022 (64-bit) Version 17.0.5 C# Tools 4.0.1-1.21568.1+6ab6601178d9fba8c680b56934cd1742e0816bff .NET 6,
Steps to Reproduce:
Program.cs
public unsafe record MyStruct(void* Value1, nuint Value2);
Quick Actions and Refactorings...
Expected Behavior: CS8908 is shown in Error List, the line is marked.
Actual Behavior: No errors are shown in the editor before and after attempted build. CS8908 is only shown in the Output window:
CS8908: The type 'void*' may not be used for a field of a record.
I suspect it's because this error (ERR_BadFieldTypeInRecord) is generated during the emit phase of the compilation. The IDE and Error List don't report those well.
ERR_BadFieldTypeInRecord
Version Used: Microsoft Visual Studio Community 2022 (64-bit) Version 17.0.5 C# Tools 4.0.1-1.21568.1+6ab6601178d9fba8c680b56934cd1742e0816bff .NET 6,
Steps to Reproduce:
Program.cs
:Quick Actions and Refactorings...
context menuExpected Behavior: CS8908 is shown in Error List, the line is marked.
Actual Behavior: No errors are shown in the editor before and after attempted build. CS8908 is only shown in the Output window: