summaryrefslogtreecommitdiff
path: root/tiger-compiler/tests/type/too-many-args.tig
diff options
context:
space:
mode:
Diffstat (limited to 'tiger-compiler/tests/type/too-many-args.tig')
-rw-r--r--tiger-compiler/tests/type/too-many-args.tig6
1 files changed, 6 insertions, 0 deletions
diff --git a/tiger-compiler/tests/type/too-many-args.tig b/tiger-compiler/tests/type/too-many-args.tig
new file mode 100644
index 0000000..839575d
--- /dev/null
+++ b/tiger-compiler/tests/type/too-many-args.tig
@@ -0,0 +1,6 @@
+/* error : formals are fewer then actuals */
+let
+ function g(a : int , b : string) : int = a
+in
+ g(3,"one",5)
+end