From bcbcc3100fa6cd40fba2fe6f6ca24fd7eca5847f Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Wed, 28 Dec 2022 00:39:21 +0100 Subject: [PATCH] Fix of accidentally added typo. --- test/test_suite2/errors/illegal_use_of_optional.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_suite2/errors/illegal_use_of_optional.c3 b/test/test_suite2/errors/illegal_use_of_optional.c3 index 282a4745f..6d33a20ee 100644 --- a/test/test_suite2/errors/illegal_use_of_optional.c3 +++ b/test/test_suite2/errors/illegal_use_of_optional.c3 @@ -5,7 +5,7 @@ fn void syntaxErrors() if (i + 1) {} // #error: optional, but was 'int!' for (int x = i;;) {} // #error: 'int!' to 'int' for (int x = 0; x < i + 1;) {} // #error: optional, but was 'bool!'. - for (int x = 0; x < 10; x += i + 1) {} // #error: Cannot assign an an optional value to a non-optional + for (int x = 0; x < 10; x += i + 1) {} // #error: Cannot assign an optional value to a non-optional switch (i + 1) // #error: optional, but was 'int!' { default: