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(),
)
}
}
-2
View File
@@ -15,6 +15,4 @@ void main()
items::impl_test::run_tests();
items::attribute_test::run_tests();
println!("\x1b[32m\nAll tests passed!\x1b[0m");
void fn() hello = () => {};
}