We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
This does not work:
[Union] public partial record Response { public partial record Ok; public partial record Ok<T>; }
It complains that the abstract members are not implemented.
Also this does not work:
[Union] public partial record Response<T> { public partial record Ok; public partial record Ok(T Data); }
Or this:
[Union] public partial record Response { public partial record Ok; } [Union] public partial record Response<T> { public partial record Ok(T Data); }
The text was updated successfully, but these errors were encountered:
I don't see a good argument for supporting the first code snippet. Maybe if you wouldn't mind expanding on why that would be valuable?
As for the second, there's two alternative designs that I believe fulfill your needs:
Ok(T? Data)
null
OkWithContent(T Data)
Sorry, something went wrong.
No branches or pull requests
Hello,
This does not work:
It complains that the abstract members are not implemented.
Also this does not work:
Or this:
The text was updated successfully, but these errors were encountered: