goto should work on globals

This commit is contained in:
Dave Halter
2019-05-31 17:41:34 +02:00
parent d9332aec8c
commit d6c89ced99
2 changed files with 4 additions and 1 deletions

View File

@@ -153,6 +153,7 @@ ret()[0]
# -----------------
def global_define():
#? int()
global global_var_in_func
global_var_in_func = 3
@@ -168,6 +169,7 @@ def funct1():
global global_dict_var
global_dict_var = dict()
def funct2():
#! ['global_dict_var', 'global_dict_var']
global global_dict_var
#? dict()
global_dict_var