To Reproduce
async def b():
for i in range(5):
yield i
def a():
return [x async for x in b()]
Expected Behavior
Syntax error. When trying to run with python this code gives a syntax error.
Actual Behavior
Passed with no errors.
Your Environment
- Mypy version used: 0.812
- Python version used: 3.8