mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Permit foreach values to be optional. Update matching algorithm.
This commit is contained in:
@@ -33,7 +33,7 @@ fn void test4()
|
||||
|
||||
fn void test5()
|
||||
{
|
||||
foreach (int! y : z) foo(); // #error: The variable may not be an optional.
|
||||
foreach (int! y : z) foo();
|
||||
}
|
||||
|
||||
fn void test6()
|
||||
|
||||
@@ -33,7 +33,7 @@ fn void test4()
|
||||
|
||||
fn void test5()
|
||||
{
|
||||
foreach_r (int! y : z) foo(); // #error: The variable may not be an optional.
|
||||
foreach_r (int! y : z) foo();
|
||||
}
|
||||
|
||||
fn void test6()
|
||||
|
||||
Reference in New Issue
Block a user