iter 22b.2.1: add Constraint struct, Type::Forall.constraints

This commit is contained in:
2026-05-09 17:34:39 +02:00
parent e1d748d64e
commit b636b883a3
14 changed files with 94 additions and 20 deletions
+1
View File
@@ -858,6 +858,7 @@ impl<'a> Parser<'a> {
self.expect_rparen("forall-type")?;
Ok(Type::Forall {
vars,
constraints: vec![],
body: Box::new(body),
})
}
+1 -1
View File
@@ -296,7 +296,7 @@ fn write_type(out: &mut String, t: &Type) {
}
out.push(')');
}
Type::Forall { vars, body } => {
Type::Forall { vars, constraints: _, body } => {
out.push_str("(forall (vars");
for v in vars {
out.push(' ');