Add variables
This commit is contained in:
parent
a6eb2b4020
commit
6fba0cc5b4
@ -30,13 +30,17 @@ impl TypeError {
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum Type {
|
||||
Const(TypeConst),
|
||||
Var(TypeVar),
|
||||
Arrow(Box<Type>, Box<Type>),
|
||||
Compound {
|
||||
ty: Box<Type>,
|
||||
ty_name: String,
|
||||
args:Vec<Type>
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct TypeVar(String);
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum TypeConst {
|
||||
Unit,
|
||||
|
Loading…
Reference in New Issue
Block a user