diff --git a/test/completion/ordering.py b/test/completion/ordering.py index 32a85845..2c7e7fe5 100644 --- a/test/completion/ordering.py +++ b/test/completion/ordering.py @@ -89,6 +89,22 @@ def f(b, a): return a #? [] f(b=3) +# ----------------- +# closure +# ----------------- + +def x(): + a = 0 + + def x(): + return a + + a = 3.0 + return x() + +#? float() +x() + # ----------------- # class # -----------------