From 23b2028bdce46d02209fc2df70fc5468a8beffa8 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Wed, 6 Aug 2025 14:15:12 +0300 Subject: Added boilerplate and tests for let-binds --- src/type/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/type/mod.rs') 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), 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()), } } + } -- cgit v1.2.3