Fixed codegen for function type

This commit is contained in:
2026-06-28 06:04:39 +02:00
parent a2fc8a4922
commit a867dbc797
2 changed files with 3 additions and 5 deletions
+3 -3
View File
@@ -268,14 +268,14 @@ impl GetRust for TypeExpr {
params,
} => {
format!(
"{} -> {}({})",
"{}({}) -> {}",
kind.get_rust(),
return_type.get_rust(),
params
.iter()
.map(TypeExpr::get_rust)
.collect::<Vec<_>>()
.join(", ")
.join(", "),
return_type.get_rust(),
)
}
}