Files
c3c/test/test_suite/statements/foreach_custom_errors.c3
Christoffer Lerno 99cfaa1583 Refactor protocols.
2023-10-06 22:31:41 +02:00

16 lines
282 B
Plaintext

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