From 1819c7e6464481fc752dd75da7f06c127775f371 Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 16 Feb 2024 11:32:02 -0500 Subject: [PATCH] Fix type lookup for built-in values --- src/context.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/context.rs b/src/context.rs index 40430a2..9612383 100644 --- a/src/context.rs +++ b/src/context.rs @@ -120,6 +120,7 @@ impl Context { } for built_in_value in all_built_in_values() { + println!("{} {}", built_in_value.name(), identifier.inner()); if built_in_value.name() == identifier.inner().as_ref() { return Ok(Some(built_in_value.get().clone())); } @@ -141,6 +142,12 @@ impl Context { } } + for built_in_value in all_built_in_values() { + if built_in_value.name() == identifier.inner().as_ref() { + return Ok(Some(built_in_value.get().r#type())); + } + } + Ok(None) }