iter 22b.2.1: add Constraint struct, Type::Forall.constraints
This commit is contained in:
@@ -858,6 +858,7 @@ impl<'a> Parser<'a> {
|
||||
self.expect_rparen("forall-type")?;
|
||||
Ok(Type::Forall {
|
||||
vars,
|
||||
constraints: vec![],
|
||||
body: Box::new(body),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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(' ');
|
||||
|
||||
Reference in New Issue
Block a user