Test every book test case
[tiger.ml.git] / compiler / testcases / test21.tig
CommitLineData
38ffcb1f
SK
1/* error : procedure returns value and procedure is used in arexpr */
2let
3
4/* calculate n! */
5function nfactor(n: int) =
6 if n = 0
7 then 1
8 else n * nfactor(n-1)
9
10in
11 nfactor(10)
12end
13
This page took 0.025494 seconds and 4 git commands to generate.