The following code generates CS9056 ("Types and aliases cannot be named 'file'"):
public sealed class file
{
}
This happens after I upgraded VS to 2022 Preview, 17.4.0. The code used to compile just fine previously. I cannot find any information indicating that file was now a keyword in C#. The solution I'm trying to translate builds using the 5.0SDK but targets .NET Framework 4.8.
I do know that types should use uppercase names normally and that I could work around the issue by changing class file to class @file, but this is in an auto-generated file where I cannot change the generator. And applying some sed hacks seems like, well, a hack.
Why is file considered a keyword here and what would it be intended for? Can I disable it?