You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d8a43fb
Browse filesBrowse the repository at this point in the historyBrowse files
[mypyc] Fix C name conflict with conditional nested async funcs (#22330)
Fixesmypyc/mypyc#1182.
Multiple conditional definitions of a nested async function or generator
with the same name generated invalid C (redefinition errors):
```python
async def f(flag: bool) -> str:
if flag:
async def inner() -> str:
return "a"
else:
async def inner() -> str:
return "b"
return await inner()
```
The environment classes of the nested functions had the same name. Now
we make the names unique, similar to the names of callable classes.
0 commit comments