aboutsummaryrefslogtreecommitdiff
path: root/src/type
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-09 21:39:45 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-09 21:39:45 +0300
commita2ca4c08dcbb5c08e210bc741141290a136a8de4 (patch)
tree17e35daeb7028b61b3afb2a9a626bcf38a3dfbff /src/type
parent8062ed87d30fa7628f26cfd7bb94bb0e7401752b (diff)
downloadmyslip-a2ca4c08dcbb5c08e210bc741141290a136a8de4.tar.gz
myslip-a2ca4c08dcbb5c08e210bc741141290a136a8de4.zip
Implemented print as ? -> ()
Diffstat (limited to 'src/type')
-rw-r--r--src/type/check.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/type/check.rs b/src/type/check.rs
index e536ce7..77420e3 100644
--- a/src/type/check.rs
+++ b/src/type/check.rs
@@ -194,6 +194,7 @@ impl SExp {
List(vec![VecType, vecof(vt("T"))])
)),
Atom(Let) => Ok(LetType),
+ Atom(Print) => Ok(arr(vt("_"), List(vec![]))),
SCons(op, l) => {