Skip to content
Discussion options

You must be logged in to vote

This has to do with target-typing. Method groups, by default, do not have a type and must be converted to a delegate type. This can be done through target-typing, but not all expressions allow target-typing through them. @HazyFish, the version of the compiler you're using does not support the changes made for #2389. Ternaries also do not currently support target-typing like this, but it has been proposed and championed here: #2460.

Replies: 10 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LuisEduardoFrias
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YairHalberstadt
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #2728 on November 03, 2020 10:36.