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