Fixed type bugs #65

This commit is contained in:
2026-06-05 17:39:41 +02:00
parent b559215212
commit cac497a560
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -36,6 +36,11 @@ impl<'a> TryFrom<pest::iterators::Pair<'a, Rule>> for TypeExpr {
ty: TypeExpr::try_from(inner.next().unwrap()).map(Box::new),
})
}
Rule::dyn_type => {
ast_expr!(TypeExpr::Dyn(
TypeExpr::try_from(inner.next().unwrap()).map(Box::new),
))
}
_ => AstError::bug_unimplemented(pair),
}