Files
openide/python/testData/resolve/InstanceAttrBelowInInitAndOtherMethodAbove.py
Andrey Vlasovskikh 19962fdaa7 PY-45206 IJ-CR-3996 Fixed resolve to fallback definition from __init__() to method defined above
GitOrigin-RevId: 7c9b302f9ce78fe901a1c28adb9f647c86d60e96
2021-03-30 14:27:00 +00:00

10 lines
179 B
Python

class C:
def g(self):
self.foo = 0
def __init__(self):
self.g()
print(self.foo) # -> self.foo in g
# <ref>
self.foo = 1