diff options
author | Eduardo Julian | 2022-07-28 02:44:45 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-07-28 02:44:45 -0400 |
commit | a4847190df926d35f7ece97da50a2a8b1462a24f (patch) | |
tree | d368c52b41425631c3962d3c238e6c3c9c797ad6 /lux-lua | |
parent | ebfe1bbbe543299f8691e4862fbc899637ff8cfd (diff) |
Now statically resolving values from globals in pattern-matching.
Diffstat (limited to 'lux-lua')
-rw-r--r-- | lux-lua/source/program.lux | 6 |
1 files changed, 3 insertions, 3 deletions
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 |