Merge branch 'master' of github.com:micropython/micropython
This commit is contained in:
commit
9982f2795d
13
tests/basics/class-super.py
Normal file
13
tests/basics/class-super.py
Normal file
@ -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
Block a user