Types with arguments

This commit is contained in:
greg 2019-02-17 04:30:49 -08:00
parent abbd02eaef
commit df7e74c79d
1 changed files with 5 additions and 1 deletions

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)]