aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
authorEduardo Julian2022-06-26 00:50:32 -0400
committerEduardo Julian2022-06-26 00:50:32 -0400
commitcfdc546e6834ceeb78cb692d17fd5c60695be982 (patch)
tree3a76dbbcedec800bba566cc573c8547309d5e5e4 /lux-python
parentfb46beb8bd784ba92949bf2c535dc13c2f003ef0 (diff)
(Even) better syntax for invoking super methods inside overriden methods.
Diffstat (limited to 'lux-python')
-rw-r--r--lux-python/source/program.lux6
1 files changed, 3 insertions, 3 deletions
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)