aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-08 19:45:19 +0200
committerEugen Wissner <belka@caraus.de>2026-10-08 19:45:19 +0200
commit7d07bef760a8807fe49fbe5c90799a1822f95973 (patch)
tree8b8d8ed0003dc61c4bd7313df86f6cbaea3d4b82 /testsuite/fail_compilation
parentd392f0c54a7748b816ab327758ae835f73cd1c0a (diff)
downloadelna-7d07bef760a8807fe49fbe5c90799a1822f95973.tar.gz
Make modules re-exportable
Diffstat (limited to 'testsuite/fail_compilation')
-rw-r--r--testsuite/fail_compilation/transitive_import/helper.elna6
-rw-r--r--testsuite/fail_compilation/transitive_import/middle.elna5
-rw-r--r--testsuite/fail_compilation/transitive_import/sut.elna8
3 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/transitive_import/helper.elna b/testsuite/fail_compilation/transitive_import/helper.elna
new file mode 100644
index 0000000..c3c0bfd
--- /dev/null
+++ b/testsuite/fail_compilation/transitive_import/helper.elna
@@ -0,0 +1,6 @@
+module
+
+proc multiply*(x, y: Int) -> Int
+return x * y
+
+end.
diff --git a/testsuite/fail_compilation/transitive_import/middle.elna b/testsuite/fail_compilation/transitive_import/middle.elna
new file mode 100644
index 0000000..0aab392
--- /dev/null
+++ b/testsuite/fail_compilation/transitive_import/middle.elna
@@ -0,0 +1,5 @@
+module
+
+import helper
+
+end.
diff --git a/testsuite/fail_compilation/transitive_import/sut.elna b/testsuite/fail_compilation/transitive_import/sut.elna
new file mode 100644
index 0000000..5423dbd
--- /dev/null
+++ b/testsuite/fail_compilation/transitive_import/sut.elna
@@ -0,0 +1,8 @@
+module
+
+import middle
+
+proc call() -> Int
+return multiply(3, 4) (* @Error Symbol 'multiply' not declared *)
+
+end.