summary refs log tree commit diff stats
path: root/test/stuff/test5.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/stuff/test5.py')
-rw-r--r--test/stuff/test5.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/stuff/test5.py b/test/stuff/test5.py
new file mode 100644
index 00000000..682a716f
--- /dev/null
+++ b/test/stuff/test5.py
@@ -0,0 +1,26 @@
+class A:
+	def foo(self, x):
+		y = x + 1
+		print(y)
+		return y
+
+	@staticmethod
+	def zar():
+		print("l o l")
+
+class B(A):
+	def bar(self, x):
+		y = self.foo(x) + 3
+		print(y)
+		return y
+
+class C():
+	def foo(self, x):
+		y = x - 1
+		print(y)
+		return y
+
+a = C()
+A.foo(a, 5)
+
+B.zar()