Fix super call goto for multiple inheritance, fixes #1311

This commit is contained in:
Dave Halter
2019-06-24 09:53:56 +02:00
parent ebdae87821
commit 265abe1d08
3 changed files with 45 additions and 11 deletions

View File

@@ -109,6 +109,23 @@ class X():
#! 3 []
X(foo=x)
# Multiple inheritance
class Foo:
def foo(self):
print("foo")
class Bar:
def bar(self):
print("bar")
class Baz(Foo, Bar):
def baz(self):
#! ['def foo']
super().foo
#! ['def bar']
super().bar
#! ['instance Foo']
super()
# -----------------
# imports
# -----------------