1
0

Fix type lookup for built-in values

This commit is contained in:
Jeff 2024-02-16 11:32:02 -05:00
parent ee692b360e
commit 1819c7e646

View File

@ -120,6 +120,7 @@ impl Context {
} }
for built_in_value in all_built_in_values() { 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() { if built_in_value.name() == identifier.inner().as_ref() {
return Ok(Some(built_in_value.get().clone())); 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) Ok(None)
} }