Add test case

This commit is contained in:
joshua1b
2019-10-20 17:01:09 +09:00
parent 848727b64e
commit da698eb7f9

View File

@@ -174,6 +174,16 @@ class A:
assert a == 2
A.b()
class A:
pass
assert A.__doc__ == None
class B:
"Docstring"
assert B.__doc__ == "Docstring"
# TODO: uncomment once free vars/cells are working
# The symboltable sees that b() is referring to a in the nested scope,
# so it marks it as non local. When it's executed, it walks up the scopes