[Proposal] Generic version of nullable attributes aka NotNull<NotNull, MaybeNull> #2973
Unanswered
Orace
asked this question in
Language Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With current existing attribute, one can write:
But if the return value is a generic type, it's not possible do give nullability information for the type parameters.
This proposal addresses this.
We may add generic version of the nullable-attributes that accept 1 to 8 (16, 32 ?) generic parameter of a common nullable-attributes type.
This may allow to write:
Of course we first need generic attributes.
Beta Was this translation helpful? Give feedback.
All reactions