Types with arguments

This commit is contained in:
greg 2019-02-17 04:30:49 -08:00
parent abbd02eaef
commit df7e74c79d

View File

@ -30,7 +30,11 @@ impl TypeError {
#[derive(Debug, Clone)]
pub enum Type {
Const(TypeConst),
Arrow(Box<Type>, Box<Type>)
Arrow(Box<Type>, Box<Type>),
Compound {
ty: Box<Type>,
args:Vec<Type>
}
}
#[derive(Debug, Clone, PartialEq)]