aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation
diff options
context:
space:
mode:
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.