add test for type variables
Haldean Brown
5 years ago
2 changed file(s) with
13 addition(s)
and
0 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-0
test/prog/GNUmakefile
less
more
32
32
scope-simple.uk \
33
33
simple-adt.uk \
34
34
simple-test.uk \
35
typevars.uk \
35
36
zero-arity.uk
36
37
37
38
all: $(tests)
+12
-0
test/prog/typevars.uk
less
more
0
^ Test var
1
= Hello var
2
3
: thing ^ Test a -> a = \x -> ? x { . Hello v => v }
4
5
! {
6
: t1 = thing (Hello 10)
7
: t2 = thing (Hello "ten")
8
! 0
9
}
10
11
~ ubik-tests/typevars