Fixed wrong handeling of EAdd in monomorphizer, as well as more documentation and cleanup
This commit is contained in:
parent
7ab0e65981
commit
2611ddc2b2
2 changed files with 63 additions and 86 deletions
|
|
@ -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) ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue