mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Deprecate cast-style conversion from integer to enum. - Make deprecation an error in test mode.
10 lines
152 B
Plaintext
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
|
|
} |