heptagon/test/good/type_alias.ept
Léonard Gérard 36061f4518 fixed tests to the new iterator syntax.
Changed (( and )) to (< and >) since it's very common to write )) !
2011-03-21 22:24:37 +01:00

22 lines
302 B
Plaintext

const n:int = 10
type metres = int
type tableau = int^n
type matrice = metres^n^n
fun f(a:metres) returns (o: metres)
let
o = a + 1;
tel
fun g(a:tableau) returns (o:tableau)
let
o = map<<n>> f (a);
tel
fun h(a:matrice) returns (o:matrice)
var x : matrice;
let
x = a;
o = map<<n>> g (x);
tel