diff options
Diffstat (limited to 'tests/datatype.ur')
-rw-r--r-- | tests/datatype.ur | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/datatype.ur b/tests/datatype.ur new file mode 100644 index 0000000..302a7da --- /dev/null +++ b/tests/datatype.ur @@ -0,0 +1,16 @@ +datatype t = A | B + +val a = A +val b = B + +datatype foo = C of t + +val c = C a + +datatype list = Nil | Cons of {Head : int, Tail : list} + +val nil = Nil +val l1 = Cons {Head = 0, Tail = nil} + +datatype term = App of term * term | Abs of term -> term + |