aboutsummaryrefslogtreecommitdiff
path: root/src/type/mod.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-05 15:12:27 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-05 15:12:27 +0300
commit1e712e91edea0735c5eb440af26ac6d4454e70a9 (patch)
treef03b4afb90bb4e36e825814a4fddec253994b7b3 /src/type/mod.rs
parent7be78efb6c56c04b8a96b3f4f7f6cf810da04dbf (diff)
downloadmyslip-1e712e91edea0735c5eb440af26ac6d4454e70a9.tar.gz
myslip-1e712e91edea0735c5eb440af26ac6d4454e70a9.zip
Fix: quote is not a typewise identity function. Added vt(&str) as util for VarType(String).
Diffstat (limited to 'src/type/mod.rs')
-rw-r--r--src/type/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/type/mod.rs b/src/type/mod.rs
index e4c0841..e29e069 100644
--- a/src/type/mod.rs
+++ b/src/type/mod.rs
@@ -16,6 +16,8 @@ pub enum Type {
Boolean,
+ QuoteTy,
+
Arrow(Box<Type>, Box<Type>),
List(Vec<Type>),
@@ -92,6 +94,7 @@ impl Type {
match self {
Integer => Ok(()),
Boolean => Ok(()),
+ QuoteTy => Ok(()),
Arrow(a, b) => b.is_concrete().and_then(|_ok| a.is_concrete()),
List(v) => {
let mut res = Ok(());