Types with arguments
This commit is contained in:
parent
abbd02eaef
commit
df7e74c79d
@ -30,7 +30,11 @@ impl TypeError {
|
|||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum Type {
|
pub enum Type {
|
||||||
Const(TypeConst),
|
Const(TypeConst),
|
||||||
Arrow(Box<Type>, Box<Type>)
|
Arrow(Box<Type>, Box<Type>),
|
||||||
|
Compound {
|
||||||
|
ty: Box<Type>,
|
||||||
|
args:Vec<Type>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
|
Loading…
Reference in New Issue
Block a user