5 ms·
Not quite closed. The compiler generated protected constructor can still be used. public record UhOh<A> : Maybe<A> { public UhOh() : base(new M
by S04dKHzrKT 2y ago
Not quite closed. The compiler generated protected constructor can still be used.
public record UhOh<A> : Maybe<A>
{
public UhOh() : base(new Maybe<A>.Nothing())
{
}
}
Maybe<int> m = new UhOh<int>();