Add basic super() test.
This commit is contained in:
parent
2077397118
commit
135002a086
|
@ -0,0 +1,13 @@
|
|||
class Base:
|
||||
|
||||
def meth(self):
|
||||
print("in Base meth")
|
||||
|
||||
class Sub(Base):
|
||||
|
||||
def meth(self):
|
||||
print("in Sub meth")
|
||||
return super().meth()
|
||||
|
||||
a = Sub()
|
||||
a.meth()
|
Loading…
Reference in New Issue