Skip to content

Commit 9982f27

Browse files
committed
Merge branch 'master' of github.com:micropython/micropython
2 parents 438c88d + 135002a commit 9982f27

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/basics/class-super.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Base:
2+
3+
def meth(self):
4+
print("in Base meth")
5+
6+
class Sub(Base):
7+
8+
def meth(self):
9+
print("in Sub meth")
10+
return super().meth()
11+
12+
a = Sub()
13+
a.meth()

0 commit comments

Comments
 (0)