-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show type info of yield #32283
Comments
Good idea, although I don't think we produce yield's type when checking, although this might have recently changed. |
In fact, finding a break of type checking such as #32248 (yield wrongly returns any type.) is impossible when we can't directly check a type of yield. When yield argument type is any, we can't know it. When yield return type is any, we can't know it without seeing an inferred type via a variable. |
What is the expected display? |
I expect it. |
Expect which one🤦🏻♂️ |
Ah, I meant |
@DanielRosenwasser Any suggestions?🙋🏻♂️ |
Similar to #11261 which is about quick info on |
@rbuckton
yield
keyword should show its argument type and return type when a cursor is put on there.The text was updated successfully, but these errors were encountered: