Files
c3c/test/test_suite/statements/foreach_custom_errors.c3
Christoffer Lerno df77b692d6 Support "typedef"
2023-02-14 16:49:27 +01:00

16 lines
290 B
C

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