aboutsummaryrefslogtreecommitdiff
path: root/lux-python
diff options
context:
space:
mode:
authorEduardo Julian2022-06-29 02:28:21 -0400
committerEduardo Julian2022-06-29 02:28:21 -0400
commit5232f0701cd95f260005a65d220a361dd71b6b96 (patch)
tree27679c20de827b070871b0febf3826e7e9b611ea /lux-python
parent29bbd8a2cd4deb9038f01c16d54ffa937917cfaa (diff)
Better syntax for calling virtual methods when defining JVM classes.
Diffstat (limited to 'lux-python')
-rw-r--r--lux-python/source/program.lux4
1 files changed, 2 insertions, 2 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index 3b01242ef..029d9d4f0 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}
- (ffi.super index')
+ (ffi.super [index'] self)
{.#Some it}
(<| (case (ffi.as [java/lang/Object] (as java/lang/Object it))
@@ -332,7 +332,7 @@
(pseudo_function to_host it)
{.#None})
- (ffi.super index'))))
+ (ffi.super [index'] self))))
)))
(def (to_host it)