Fixed printing bug in MorbIr, fixed Monomorphizer forgetting to output constructors on EInj

This commit is contained in:
Rakarake 2023-05-01 16:14:01 +02:00
parent 3377879dd0
commit 59da6d8864
3 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,12 @@
data Either (a b) where
Left : a -> Either (a b)
Right : b -> Either (a b)
unwrap : Either (a a) -> a
unwrap x = case x of
Left y => y
Right y => y
main : Int
main = unwrap (Left 3)