summaryrefslogtreecommitdiff
path: root/testsuite/runtime/linearize/TestCnc.gf
blob: 025e7af349fd1269ffa6a8798fb0f9ed979bb5d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
concrete TestCnc of Test = {

param Number = Pl | Sg;
lincat E = {s:Str; n : Number} ;
lindef E = \s -> {s=s; n=Sg} ;

lincat P = {s:Str} ;

lin Exist f = {s = "exists" ++ f.$0 ++ "such that" ++ f.s};
lin Even x  = {s = x.s ++ case x.n of {Sg => "is"; Pl => "are"} ++ "even"};

}