Mercurial > urweb
annotate tests/eargs.ur @ 1832:373e2c3f03b2
Rename Basis.exp to Basis.pow, to avoid confusion with 'expression'; add a test case for it
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Wed, 28 Nov 2012 11:45:46 -0500 |
parents | 71bafe66dbe1 |
children |
rev | line source |
---|---|
adamc@241 | 1 val id1 = fn n : int => n |
adamc@241 | 2 val id2 = fn n => id1 n |
adamc@241 | 3 |
adamc@241 | 4 val pair1 = fn (t1 ::: Type) (t2 ::: Type) (x1 : t1) (x2 : t2) => (x1, x2) |
adamc@241 | 5 val pair2 = fn (t1 ::: Type) (t2 ::: Type) (x1 : t1) (x2 : t2) () => pair1 x1 x2 |
adamc@242 | 6 |
adamc@242 | 7 val id3 n = id2 n |
adamc@242 | 8 val id4 n : int = id3 n |
adamc@242 | 9 val id5 (n : int) = id4 n |
adamc@242 | 10 val id6 (n : int) : int = id5 n |
adamc@242 | 11 |
adamc@242 | 12 val id1 (t ::: Type) (x : t) = x |
adamc@242 | 13 val id2 (t ::: Type) (x : t) : t = id1 x |