I suggest we ...

Implement implicit casts for yield

4 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Francois Brodeur shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • Gauthier Segay commented  ·   ·  Flag as inappropriate

    It seems there are other areas where this could also take place?

    It is a bit annoying to have to explicitly cast but at least it is consistent wherever expected type is not an exact match.

    Introducing this for yield only would create a special case.

F# Language

Feedback and Knowledge Base