diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-01 21:19:43 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-01 21:19:43 -0400 |
commit | 332e63f89011488c8c1df9a0903f95be20d989a4 (patch) | |
tree | 2be405017cad5af57826b17c1715d9579eb06d1b /tests/nest.ur | |
parent | e7ee2c10c91252731665373f3fe01f43adfeed72 (diff) |
Almost have that nested save function compiling
Diffstat (limited to 'tests/nest.ur')
-rw-r--r-- | tests/nest.ur | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/nest.ur b/tests/nest.ur index 8da50712..96bfdff4 100644 --- a/tests/nest.ur +++ b/tests/nest.ur @@ -45,7 +45,26 @@ fun f (x : int) = page3 end -datatype list t = Nil | Cons of t * list t +fun add2 (x : int) (y : int) = + let + fun add3 () = x + y + in + add3 + end + +fun add3 (x : int) = + let + fun add2 (y : int) = + let + fun add1 (z : int) = x + y + z + in + add1 + end + in + add2 + end + +(*datatype list t = Nil | Cons of t * list t fun length (t ::: Type) (ls : list t) = let @@ -57,3 +76,4 @@ fun length (t ::: Type) (ls : list t) = length' ls 0 end +*) |