3 ms·
Tried with public Record Foo(int x = default, int y = default); and it still complained about missing a constructor. I didn't try to add an constructor like y
by DeathArrow 5y ago
Tried with
public Record Foo(int x = default, int y = default);
and it still complained about missing a constructor. I didn't try to add an constructor like you suggested, it's still shorter than defining all members.