[Bug] InvalidCastException when adding parameters to a C# 9 positional record type
I receive an invalid cast exception when using the new C# 9 record types.
Given the following code, if I type a comma after the parameter a
, I receive an invalid cast exception.
void Main() { } public record Test(string a);
Comments
The exception is thrown within the Roslyn libraries, so I suspect that this is either a glitch in the daily build, or a case of the tooling libraries not having caught up.