X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2Ftest.spl;h=b33297c27ab6cf667195cf836cc9a579e58bafcc;hb=b0a8d161ec4566b50febd63640fab70f8081c685;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); +}