diff options
author | 2008-07-24 15:02:03 -0400 | |
---|---|---|
committer | 2008-07-24 15:02:03 -0400 | |
commit | 92af3391b64df0a2082006c39ed1335dd1bf7256 (patch) | |
tree | 88b7d3545d1b46e288c0f1f0d41a9be6abdb0ce1 /tests | |
parent | 84f7c995c0ad553d3fc91d1b31f320fc9de58d79 (diff) |
Start of datatype support
Diffstat (limited to 'tests')
-rw-r--r-- | tests/datatype.lac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/datatype.lac b/tests/datatype.lac new file mode 100644 index 00000000..1e1a91aa --- /dev/null +++ b/tests/datatype.lac @@ -0,0 +1,13 @@ +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} |