X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2Ftest.spl;h=b33297c27ab6cf667195cf836cc9a579e58bafcc;hb=6d70a636ed3b4573c4c81ba068ae2b46523c9465;hp=e6a7f05f6efc6101c55bcca32074d16ee131393b;hpb=0e3e968f772d6befb4dbe05f864caae4af84ea62;p=cc1516.git diff --git a/examples/test.spl b/examples/test.spl index e6a7f05..b33297c 100644 --- a/examples/test.spl +++ b/examples/test.spl @@ -1,6 +1,15 @@ Bool n = True; +test(x) :: Int -> Int { + var y = test(x+1); + return y; +} + f(n) :: Int -> Int{ var m = n+1; return n; } + +test2(x) { + return f(x); +}