Formatting

This commit is contained in:
Michael Schimmel
2026-02-24 08:41:18 +01:00
parent 252b725677
commit 2b0e7f49d7
4 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -411,7 +411,10 @@ impl Binder {
// Global Definition in pattern
let mut globals = self.globals.borrow_mut();
if globals.contains_key(sym) {
return Err(format!("Global variable '{}' is already defined.", sym.name));
return Err(format!(
"Global variable '{}' is already defined.",
sym.name
));
}
let idx = globals.len() as u32;
globals.insert(sym.clone(), idx);
+1 -3
View File
@@ -145,9 +145,7 @@ impl TypeChecker {
(BoundKind::Parameter { name, slot }, specialized_ty.clone())
}
BoundKind::DefGlobal {
name,
global_index,
..
name, global_index, ..
} => {
self.global_types
.borrow_mut()
+4 -1
View File
@@ -392,7 +392,10 @@ impl VM {
}
Value::Function(f) => return Ok((f.func)(arg_vals)),
_ => {
return Err(format!("Tail call target is not a function: {}", func_val));
return Err(format!(
"Tail call target is not a function: {}",
func_val
));
}
}
}