Allow implicit in with lambda syntax #1591
-
Currently, if you have a delegate with an If a function has multiple lambda taking overloads, with one taking an in lambda, and one taking a non in lambda, the same overloads as currently with in value parameters should apply. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I don't like that being implicit, but rather, we could just permit the type to be omitted. delegate void D(in int i, ref int j);
D d = (in x, ref y) => {}; |
Beta Was this translation helpful? Give feedback.
-
That'd be fine too. Just having to fully type out everything is a pain. |
Beta Was this translation helpful? Give feedback.
-
proposal here: #338 |
Beta Was this translation helpful? Give feedback.
proposal here: #338