[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);


Sign In or Register to comment.