summaryrefslogtreecommitdiff
path: root/tests/disjoint.lac
blob: fcc86fa549947ceb0fbf10c396c0731c18cf1f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
con c1 = fn x :: Name => [x] ~ [A] => [x, A]
con c2 = fn x :: Name => [x] ~ [A] => [A, x]
con c3 = fn x :: Name => [A] ~ [x] => [x, A]
con c4 = fn x :: Name => [A] ~ [x] => [A, x]

con c5 = fn r1 :: {Type} => fn r2 => r1 ~ r2 => r1 ++ r2
con c6 = fn r1 :: {Type} => fn r2 => r2 ~ r1 => r1 ++ r2

con c7 = fn x :: Name => fn r => [x] ~ r => [x] ++ r

val v1 = fn x :: Name => fn [x] ~ [A] => fn y : {x : int, A : string} => y.x