Type inference/checking on ADTs mostly complete(?). Still have to test

This commit is contained in:
sebastianselander 2023-02-27 17:22:42 +01:00
parent 2f45f39435
commit bbf6e159c7
8 changed files with 563 additions and 467 deletions

View file

@ -1,2 +1,14 @@
main : _Int ;
main = 3 + 3 ;
data List ('a) where;
Nil : List ('a),
Cons : 'a -> List ('a) -> List ('a) ;
main : List (_Int) ;
main = Cons 1 (Cons 0 Nil) ;
data Bool () where;
True : Bool (),
False : Bool ();
boolean : Bool (_Int);
boolean = True ;