From f7b035a505e86ad916a43ab1dc1a662a6066b011 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 24 Sep 2026 00:39:51 +0200 Subject: Move module heading to the top --- testsuite/fail_compilation/constant_enum_to_int.elna | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'testsuite/fail_compilation/constant_enum_to_int.elna') diff --git a/testsuite/fail_compilation/constant_enum_to_int.elna b/testsuite/fail_compilation/constant_enum_to_int.elna index 85f6d4c..194109b 100644 --- a/testsuite/fail_compilation/constant_enum_to_int.elna +++ b/testsuite/fail_compilation/constant_enum_to_int.elna @@ -1,3 +1,4 @@ +program() type Enumeration = (one, two, three) @@ -5,9 +6,6 @@ var x: [3]Int := [1, 2, 3] y: []Int -program() begin y := x[Enumeration.one to Enumeration.two] (* @Error Array index must be an integral type, but got 'Enumeration' *) -return 0u8 - end. -- cgit v1.2.3