Files
c3c/test/test_suite/statements/foreach_custom_errors.c3
Christoffer Lerno 5c77c9a754 - Change distinct -> typedef.
- Order of attribute declaration is changed for `alias`.
- Added `LANGUAGE_DEV_VERSION` env constant.
- Rename `anyfault` -> `fault`.
- Changed `fault` -> `faultdef`.
- Added `attrdef` instead of `alias` for attribute aliases.
2025-03-15 20:10:47 +01:00

16 lines
281 B
Plaintext

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