Small test for statics, params and consts.
This commit is contained in:
parent
8570fe9407
commit
9860e02f53
1 changed files with 20 additions and 0 deletions
20
test/good/statics.ept
Normal file
20
test/good/statics.ept
Normal 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
|
||||
|
Loading…
Reference in a new issue