Skip to content

Conversation

charlespierce
Copy link
Contributor

Fixes #15943 and #15981

Updated special-case handling for yield expressions outside of generators to parse string literals as yield expressions as well, allowing the type checker to produce a more useful error message in that case. Additionally, updated the special-case handling for await expressions to use the same heuristics as yield expressions.

@charlespierce charlespierce changed the title #15943 #15981 Update special cases for await / yield parsing Update special cases for await / yield expression parsing Jun 2, 2017
@DanielRosenwasser
Copy link
Member

👍 thanks!

@DanielRosenwasser DanielRosenwasser merged commit 5b12a04 into microsoft:master Jun 15, 2017
@charlespierce charlespierce deleted the await_yield_literals branch October 6, 2017 01:33
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants