[fine] Fixup let environment
Also handle circular references in types and environments without exploding, and tweak test output a little bit.
This commit is contained in:
parent
ebad7fe295
commit
308114f8cf
4 changed files with 119 additions and 45 deletions
|
|
@ -107,6 +107,7 @@ fn report_semantic_error(semantics: &Semantics, tr: Option<TreeRef>, message: &s
|
|||
}
|
||||
|
||||
if let Some(tr) = tr {
|
||||
println!("About the tree: {:?}", &tree[tr]);
|
||||
println!("The logical parent chain of the tree was:\n");
|
||||
let mut current = Some(tr);
|
||||
while let Some(c) = current {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue