From cfdc546e6834ceeb78cb692d17fd5c60695be982 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 26 Jun 2022 00:50:32 -0400 Subject: (Even) better syntax for invoking super methods inside overriden methods. --- lux-python/source/program.lux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lux-python/source') diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index 9b47b79f9..9da4f8e57 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -319,7 +319,7 @@ (as (Array Any)) (array.item (|> index' ffi.int_to_long (as Nat)))) {.#None} - (pyget "super" [index']) + (ffi.super index') {.#Some it} (<| (case (ffi.as [java/lang/Object] (as java/lang/Object it)) @@ -330,9 +330,9 @@ (case (ffi.as library/lux/Function (as java/lang/Object it)) {.#Some it} (pseudo_function to_host it) - + {.#None}) - (pyget "super" [index'])))) + (ffi.super index')))) ))) (def (to_host it) -- cgit v1.2.3