aboutsummaryrefslogtreecommitdiff
path: root/src/type/display.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-06 16:23:18 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-06 16:23:18 +0300
commit313c044b4a878a425aaca6554576f5154ace8ff9 (patch)
tree706bf5e34678622111a23c7045f667c1acbe7c6d /src/type/display.rs
parent23b2028bdce46d02209fc2df70fc5468a8beffa8 (diff)
downloadmyslip-313c044b4a878a425aaca6554576f5154ace8ff9.tar.gz
myslip-313c044b4a878a425aaca6554576f5154ace8ff9.zip
Implemented let-bindings
Diffstat (limited to 'src/type/display.rs')
-rw-r--r--src/type/display.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/type/display.rs b/src/type/display.rs
index fe54941..4a9b54a 100644
--- a/src/type/display.rs
+++ b/src/type/display.rs
@@ -103,6 +103,13 @@ impl fmt::Display for TypeError {
argtype, generictype
)
},
+ LetAsOperator(letexp) => {
+ write!(
+ f,
+ "let used as operator instead of generating an operator: maybe try '({} ...)' instead",
+ letexp
+ )
+ },
OtherError => write!(f, "uncategorized error"),
}
}