mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
py/compile: Raise an error on async with/for outside an async function.
A simple reproducer is: async for x in (): x Before this change, it would cause an assertion error in mpy-cross and micropython-coverage.
This commit is contained in:
committed by
Damien George
parent
a60ad33641
commit
f2dbc91022
2
tests/basics/async_syntaxerror.py.exp
Normal file
2
tests/basics/async_syntaxerror.py.exp
Normal file
@@ -0,0 +1,2 @@
|
||||
SyntaxError
|
||||
SyntaxError
|
||||
Reference in New Issue
Block a user