No error reported when nonlocal variable is annotated as global then used #429
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
Variables outside a nested function cannot be referenced unless annotated as
nonlocal
.Actual behaviour
global
works just as fine. Even though no global variable has the name or type that shows up in the hint. It's seeing the nonlocal variable.Logs
Lots of this:
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: