Open AlekseyTs opened 3 weeks ago
Moving to Backlog since the compiler does not crash.
What language rules mandate an error?
Related to this is the runtime bug https://github.com/dotnet/runtime/issues/5479, which the runtime decided not to fix and yet closed as fixed. I believer the PEVerify issue is the same bug.
Compile the following code:
Observed: No errors. PEVerify output:
Expected: An error about a circular struct definition. For example, native compiler reports the following errors:
If fields are changed to instance fields, the cycles are detected: