From c4d938ebb2f5245b4c3faa22c4f217e7e818589f Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Tue, 14 Jun 2022 02:33:54 -0400 Subject: Better syntax for invoking super methods inside overriden methods. --- lux-python/source/program.lux | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lux-python/source') diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux index 1bdc743c0..2704b0e80 100644 --- a/lux-python/source/program.lux +++ b/lux-python/source/program.lux @@ -307,7 +307,10 @@ [(java/lang/Class java/lang/Object) ..object_class java/lang/Object (as java/lang/Object it)] ... Methods - (LuxValue [] (value self []) java/lang/Object (as java/lang/Object it)) + (LuxValue + [] (value self []) + java/lang/Object + (as java/lang/Object it)) (org/python/core/PyArray [] (pyget self [index' int]) @@ -316,7 +319,7 @@ (as (Array Any)) (array.item (|> index' ffi.int_to_long (as Nat)))) {.#None} - (::super! [index']) + (pyget "super" [index']) {.#Some it} (<| (case (ffi.as [java/lang/Object] (as java/lang/Object it)) @@ -329,7 +332,7 @@ (pseudo_function to_host it) {.#None}) - (::super! [index'])))) + (pyget "super" [index'])))) ))) (def: (to_host it) -- cgit v1.2.3