Small test for statics, params and consts.

This commit is contained in:
Léonard Gérard 2010-08-18 10:13:26 +02:00 committed by Léonard Gérard
parent 8570fe9407
commit 9860e02f53

20
test/good/statics.ept Normal file
View file

@ -0,0 +1,20 @@
const c:int = 3
fun f<<n:int>>() returns (y:int)
let
y = n + 3;
tel
fun g<<m:int>>() returns (y:int)
var x:int;
let
x = m + f<<2>>();
y = f<<m>>();
tel
fun h() returns (y:int)
let
y = c + g<<c>>();
tel