[fine] Test for function return type mismatch

This commit is contained in:
John Doty 2024-01-15 07:52:49 -08:00
parent d893002ec2
commit 44bc072b04
4 changed files with 23 additions and 6 deletions

View file

@ -664,11 +664,6 @@ impl<'a> Semantics<'a> {
// NOTE: These return `None` if they encounter some problem.
let result = result.unwrap_or(Type::Error);
if result.is_error() {
eprintln!("OH NO AN ERROR AT {}: {:?}", t.index(), tree);
}
self.types.borrow_mut()[t.index()] = Incremental::Complete(result.clone());
result
}