tuple codegen

This commit is contained in:
2026-05-04 16:59:10 +02:00
parent 0d9af81955
commit 416830b095
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -76,6 +76,14 @@ impl GetRust for TypeExpr {
fn get_rust(&self) -> String {
match self {
TypeExpr::Path(path) => get_static_type_path(path),
TypeExpr::Tuple(types) => format!(
"({})",
types
.iter()
.map(|t| t.get_rust())
.collect::<Vec<_>>()
.join(", ")
),
}
}
}