Fixed wrong handeling of EAdd in monomorphizer, as well as more documentation and cleanup

This commit is contained in:
Rakarake 2023-04-18 15:48:25 +02:00
parent 7ab0e65981
commit 2611ddc2b2
2 changed files with 63 additions and 86 deletions

View file

@ -1,11 +1,11 @@
data Maybe () where {
Just : Int -> Maybe ()
Nothing : Maybe ()
Just : Int -> Maybe () ;
Nothing : Maybe () ;
};
demoFunc x = case x of {
Just x => x + 24;
Just y => y + 24;
Nothing => 0;
};
main = demoFunc (Just 5) ;
main = demoFunc (Just 5) ;