iter 22b.3.4: fix — quality-review (zero-arg test, drop what-comments + param-name pin)

This commit is contained in:
2026-05-09 20:45:56 +02:00
parent d6084a71fb
commit d2954010ea
2 changed files with 60 additions and 3 deletions
-2
View File
@@ -359,7 +359,6 @@ pub fn synthesise_mono_fn(
Type::Fn { params, .. } if !params.is_empty()
);
let (params, body): (Vec<String>, Term) = if method_has_params {
// Method has positional params — body must be a Lam.
match body_term {
Term::Lam { params, body, .. } => (params, *body),
other => {
@@ -371,7 +370,6 @@ pub fn synthesise_mono_fn(
}
}
} else {
// Zero-arg method — body is the value directly.
(Vec::new(), body_term)
};