From f156b3c1ad1e7ec248364803331d2eb57e607295 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Thu, 20 Jul 2023 14:51:27 +0100 Subject: test next/method --- test.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'test.sh') 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 -- cgit v1.2.3