From 7d07bef760a8807fe49fbe5c90799a1822f95973 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 8 Oct 2026 19:45:19 +0200 Subject: Make modules re-exportable --- testsuite/fail_compilation/transitive_import/helper.elna | 6 ++++++ testsuite/fail_compilation/transitive_import/middle.elna | 5 +++++ testsuite/fail_compilation/transitive_import/sut.elna | 8 ++++++++ 3 files changed, 19 insertions(+) create mode 100644 testsuite/fail_compilation/transitive_import/helper.elna create mode 100644 testsuite/fail_compilation/transitive_import/middle.elna create mode 100644 testsuite/fail_compilation/transitive_import/sut.elna (limited to 'testsuite/fail_compilation') 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. -- cgit v1.2.3