aboutsummaryrefslogtreecommitdiff
path: root/src/type/display.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-05 12:08:23 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-05 12:08:23 +0300
commitbf458367d77cb4ca3f4ac0a4a8c9ffe13f71b09b (patch)
tree4019d2a46cf2c74dadd773aaa510a3867889a194 /src/type/display.rs
parentc629fac4297b8f13bdab00100f3b05549174154e (diff)
downloadmyslip-bf458367d77cb4ca3f4ac0a4a8c9ffe13f71b09b.tar.gz
myslip-bf458367d77cb4ca3f4ac0a4a8c9ffe13f71b09b.zip
Implemented booleans (no if-else yet)
Diffstat (limited to 'src/type/display.rs')
-rw-r--r--src/type/display.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type/display.rs b/src/type/display.rs
index 832b289..3e4f49c 100644
--- a/src/type/display.rs
+++ b/src/type/display.rs
@@ -18,6 +18,7 @@ impl fmt::Display for Type {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Integer => write!(f, "{}", "Int"),
+ Boolean => write!(f, "{}", "Bool"),
Arrow(a, b) => write!(f, "({} -> {})", a, b),
List(types) => write!(
f,
@@ -28,7 +29,6 @@ impl fmt::Display for Type {
.join(" ")
),
VarType(name) => write!(f, "{}", name),
- Boolean => todo!(),
}
}
}