conlang: Single-expression functions

This commit is contained in:
2025-02-20 21:59:42 -06:00
parent 3b14186b70
commit 772286eefa
7 changed files with 18 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ impl<'a> Visit<'a> for CollectUpvars<'_> {
self.bind_name(name);
}
if let Some(body) = body {
self.visit_block(body);
self.visit_expr(body);
}
}