heptagon/test/good/type_alias.ept

22 lines
302 B
Plaintext
Raw Normal View History

2010-07-27 09:29:20 +02:00
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);
2010-07-27 09:29:20 +02:00
tel
fun h(a:matrice) returns (o:matrice)
var x : matrice;
let
x = a;
o = map<<n>> g (x);
2010-07-27 09:29:20 +02:00
tel