Replies: 7 comments
-
Beta Was this translation helpful? Give feedback.
-
I would also love to see the same relaxation for Here's a discussion I had over at Roslynator about it. A web search brings up a fair few others like this.
|
Beta Was this translation helpful? Give feedback.
-
All the things, please 😁 |
Beta Was this translation helpful? Give feedback.
-
@franklin-ross could you open a separate issue for that? This issue is tracking relaxation for |
Beta Was this translation helpful? Give feedback.
-
@333fred Yup, sure. Sorry if that was a bit random here, it just seemed related 😅 |
Beta Was this translation helpful? Give feedback.
-
@franklin-ross We're relaxing things to allow |
Beta Was this translation helpful? Give feedback.
-
I was very pleased to see that when I went to create a new issue, @gafter. Thanks for posting the link here for posterity. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As part of the implementation for
??=
(championed issue here), we're looking at relaxing the requirement on the type ofA
in??
(whereA
is the type ofa
ina ?? b
). Currently, the spec for??
states:We're planning on relaxing this constraint to be:
This will enable
t1 ?? t2
, where the type oft1
andt2
are an unconstrained generic parameter, which is currently illegal. We will also enable this for??=
, which will have a similar constraint (for??=
,A
must exist).Beta Was this translation helpful? Give feedback.
All reactions