Unreachable branhces are removed, fixed a nasty bug in monomorphizer 😸

This commit is contained in:
Rakarake 2023-04-27 16:44:30 +02:00
parent 46a4d3d252
commit 3729278041
4 changed files with 68 additions and 16 deletions

View file

@ -0,0 +1,11 @@
data List (a) where
Cons : a -> List (a) -> List (a)
Nil : List (a)
bubblesort : List (a) -> List (a)
bubblesort xs = case xs of
Nil => Nil
Cons x => case x of
Nil => Cons x Nil
Cons y =>