aboutsummaryrefslogtreecommitdiff
path: root/lux-ruby/source
diff options
context:
space:
mode:
authorEduardo Julian2022-07-28 02:44:45 -0400
committerEduardo Julian2022-07-28 02:44:45 -0400
commita4847190df926d35f7ece97da50a2a8b1462a24f (patch)
treed368c52b41425631c3962d3c238e6c3c9c797ad6 /lux-ruby/source
parentebfe1bbbe543299f8691e4862fbc899637ff8cfd (diff)
Now statically resolving values from globals in pattern-matching.
Diffstat (limited to 'lux-ruby/source')
-rw-r--r--lux-ruby/source/program.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/lux-ruby/source/program.lux b/lux-ruby/source/program.lux
index 324d4cefc..6c541c74c 100644
--- a/lux-ruby/source/program.lux
+++ b/lux-ruby/source/program.lux
@@ -475,7 +475,7 @@
(case (ffi.as org/jruby/RubyString member)
{.#Some member}
(case (ffi.of_string (org/jruby/RubyString::asJavaString member))
- (static runtime.variant_tag_field)
+ runtime.variant_tag_field
(|> value
(array.item 0)
maybe.trusted
@@ -484,7 +484,7 @@
(org/jruby/RubyFixnum::new ..initial_ruby_runtime)
(ffi.is org/jruby/runtime/builtin/IRubyObject))
- (static runtime.variant_flag_field)
+ runtime.variant_flag_field
(case (array.item 1 value)
{.#None}
..ruby_nil
@@ -492,7 +492,7 @@
{.#Some flag}
..lux_unit)
- (static runtime.variant_value_field)
+ runtime.variant_value_field
(case (array.item 2 value)
{.#Some value}
(wrapped_lux_value (as_expected useful_object_class) lux_structure value)