From 5dc1e4c991efae2e0dd96b59bc57b2cd81a8c5fb Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 24 Jul 2026 18:11:43 +0200 Subject: Check the compound statement condition is a boolean --- testsuite/fail_compilation/while_condition.elna | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 testsuite/fail_compilation/while_condition.elna (limited to 'testsuite') diff --git a/testsuite/fail_compilation/while_condition.elna b/testsuite/fail_compilation/while_condition.elna new file mode 100644 index 0000000..73fed95 --- /dev/null +++ b/testsuite/fail_compilation/while_condition.elna @@ -0,0 +1,4 @@ +begin + while 1 do (* @Error Condition must be a boolean, got 'Int' *) + end +end. -- cgit v1.2.3