Type inference from L-values and return types #4527
Answered
by
333fred
ekolis
asked this question in
Language Ideas
-
If I have this code: IEnumerable<int> nums = Enumerable.Empty(); I get an error saying that the type parameter of The same goes for return types: public static IEnumerable<int> CreateEmptyList() => Enumerable.Empty(); |
Beta Was this translation helpful? Give feedback.
Answered by
333fred
Mar 11, 2021
Replies: 1 comment
-
See #92. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
333fred
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #92.