Test every book test case
[tiger.ml.git] / compiler / testcases / test06.tig
diff --git a/compiler/testcases/test06.tig b/compiler/testcases/test06.tig
new file mode 100644 (file)
index 0000000..c0daa0d
--- /dev/null
@@ -0,0 +1,13 @@
+/* define valid mutually recursive procedures */
+let
+
+function do_nothing1(a: int, b: string)=
+               do_nothing2(a+1)
+
+function do_nothing2(d: int) =
+               do_nothing1(d, "str")
+
+in
+       do_nothing1(0, "str2")
+end
+
This page took 0.023496 seconds and 4 git commands to generate.