summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rw-r--r--test.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index f161647..1a4371e 100644
--- a/test.sh
+++ b/test.sh
@@ -26,10 +26,23 @@ class B; do
done
+class C; do
+ extends B
+
+ function thing() {
+ echo "<$self> C/thing ($*)"
+
+ $self next/method "$@"
+ }
+
+done
+
A new-into objA
B new-into objB
+C new-into objC
$objA thing 1 2 3
$objB thing 4 5 6
-$objB other 7 8 9
+$objC thing 7 8 9
+$objB other a b c