just before Num

This commit is contained in:
Folkert 2022-02-26 23:11:40 +01:00
parent c0d3543d5a
commit 65b1b3fcce
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
11 changed files with 976 additions and 90 deletions

View file

@ -87,16 +87,19 @@ impl<'a> Env<'a> {
Ok(symbol)
}
None => Err(RuntimeError::LookupNotInScope(
Loc {
value: ident,
region,
},
self.ident_ids
.idents()
.map(|(_, string)| string.as_ref().into())
.collect(),
)),
None => {
let error = RuntimeError::LookupNotInScope(
Loc {
value: ident,
region,
},
self.ident_ids
.idents()
.map(|(_, string)| string.as_ref().into())
.collect(),
);
Err(error)
}
}
} else {
match self.dep_idents.get(&module_id) {