Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Incorrect inferred type for s in s = sum(i for i in [0,1]) #8

Closed
MikhailArkhipov opened this issue Aug 31, 2018 · 1 comment
Closed
Assignees
Labels
bug Something isn't working feature: intellisense

Comments

@MikhailArkhipov
Copy link

microsoft/PTVS#4286
Steps:

try this code:
s = sum(i for i in [0,1])
hover over s
Expected: s: int
Actual: s: generator[int]

Curious thing is that the type of sum(i for i in [0,1]) does not seem to be inferred at all on its own.

@MikhailArkhipov
Copy link
Author

#465, not yet for release though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: intellisense
Projects
None yet
Development

No branches or pull requests

1 participant