From a4847190df926d35f7ece97da50a2a8b1462a24f Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 28 Jul 2022 02:44:45 -0400 Subject: Now statically resolving values from globals in pattern-matching. --- lux-lua/source/program.lux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lux-lua') diff --git a/lux-lua/source/program.lux b/lux-lua/source/program.lux index e1de9fdb0..a98f18507 100644 --- a/lux-lua/source/program.lux +++ b/lux-lua/source/program.lux @@ -398,7 +398,7 @@ (case (ffi.as net/sandius/rembulan/ByteString field) {.#Some field} (case (ffi.of_string (net/sandius/rembulan/ByteString::decode field)) - (static runtime.variant_tag_field) + runtime.variant_tag_field (case (array.item 0 value) {.#Some it} (|> it @@ -408,7 +408,7 @@ {.#None} (undefined)) - (static runtime.variant_flag_field) + runtime.variant_flag_field (case (array.item 1 value) {.#Some _} (as java/lang/Object "") @@ -416,7 +416,7 @@ {.#None} (ffi.null)) - (static runtime.variant_value_field) + runtime.variant_value_field (|> value (array.item 2) maybe.trusted -- cgit v1.2.3