Files
c3c/test/test_suite/functions/named_arg_order.c3
Christoffer Lerno e453e6f9ca - Add enum.from_ordinal and fault.from_ordinal
- Deprecate cast-style conversion from integer to enum.
- Make deprecation an error in test mode.
2024-12-23 15:27:59 +01:00

10 lines
152 B
Plaintext

import std;
macro void test(int a, int $baz)
{
io::printn(a + $baz);
}
fn void main()
{
test($baz: 1, a: 4); // #error: Named arguments must always
}