aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/validate-tree/invalid/function-function
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test-files/mds-kbdc/validate-tree/invalid/function-function19
1 files changed, 19 insertions, 0 deletions
diff --git a/test-files/mds-kbdc/validate-tree/invalid/function-function b/test-files/mds-kbdc/validate-tree/invalid/function-function
new file mode 100644
index 0000000..4793bbc
--- /dev/null
+++ b/test-files/mds-kbdc/validate-tree/invalid/function-function
@@ -0,0 +1,19 @@
+function f/0
+ function g/0
+ end function
+end function
+
+# (function (@ 1 0-8) ‘f/0’
+# (.inner
+# (function (@ 2 2-10) ‘g/0’
+# (.inner nil)
+# )
+# )
+# )
+# :2:2–10: error: nested function definition
+# function g/0
+# ^^^^^^^^
+# :1:0–8: note: outer function defined here
+# function f/0
+# ^^^^^^^^
+