aboutsummaryrefslogtreecommitdiff
path: root/src/type/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/type/mod.rs')
-rw-r--r--src/type/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/type/mod.rs b/src/type/mod.rs
index 0cbcf83..9e0d9ec 100644
--- a/src/type/mod.rs
+++ b/src/type/mod.rs
@@ -25,6 +25,8 @@ pub enum Type {
VecOf(Box<Type>),
VecType, // constructor
+ LetType,
+
/// Type for generics
/// and also error messages
/// with unknown types
@@ -102,6 +104,7 @@ impl Type {
Boolean => Ok(()),
QuoteTy => Ok(()),
VecType => Ok(()),
+ LetType => Ok(()),
Arrow(a, b) => b.is_concrete().and_then(|_ok| a.is_concrete()),
List(v) => {
let mut res = Ok(());
@@ -114,4 +117,5 @@ impl Type {
VarType(s) => Err(s.clone()),
}
}
+
}