From 8e655a0786aec5e0215e09f2a9629c6f32e34793 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 28 Aug 2026 02:39:42 +0200 Subject: Reject declarations shadowing imports --- testsuite/fail_compilation/redefined_variable.elna | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 testsuite/fail_compilation/redefined_variable.elna (limited to 'testsuite/fail_compilation/redefined_variable.elna') diff --git a/testsuite/fail_compilation/redefined_variable.elna b/testsuite/fail_compilation/redefined_variable.elna new file mode 100644 index 0000000..9cf8c24 --- /dev/null +++ b/testsuite/fail_compilation/redefined_variable.elna @@ -0,0 +1,6 @@ +var + x: Int + x: Int (* @Error Symbol 'x' has been already defined *) + +begin +end. -- cgit v1.2.3