Files
c3c/test/test_suite/statements/foreach_custom_errors.c3
Christoffer Lerno 3e54d13b62 Prefer def
2023-06-02 20:08:45 +02:00

16 lines
286 B
C

fn void test1()
{
int x;
foreach (a : x) { }; // #error: It's not possible to enumerate an expression of type 'int'
}
def Test1 = distinct int;
fn void test2()
{
Test1 x;
foreach (a : x) { }; // #error: It's not possible to enumerate an expression of type 'Test1'
}