From a70dcaa949f41c585f9aea5e79f2550053d8e857 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Tue, 19 Aug 2025 13:55:05 +0300 Subject: test: added boilerplate and tests for coproduct parsing, type checking and evaluation --- src/type/display.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/type/display.rs') diff --git a/src/type/display.rs b/src/type/display.rs index a2f4b58..99394df 100644 --- a/src/type/display.rs +++ b/src/type/display.rs @@ -35,6 +35,7 @@ impl fmt::Display for Type { TypeLit => write!(f, "Type"), VecOf(ty) => write!(f, "({} ...)", *ty), Arrow(a, b) => write!(f, "({} -> {})", a, b), + SumType(a,b)=> write!(f, "(Sum {} {})", a, b), List(types) => write!( f, "({})", -- cgit v1.2.3