mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
20 lines
499 B
Plaintext
20 lines
499 B
Plaintext
|
|
fn void foo(int x) @format(1) // #error: The format '@format()'
|
|
{}
|
|
|
|
alias Foo = fn void(String format, args...) @format(0);
|
|
|
|
fn usz? printfn(String format, args...) @format(1) // #error: The format string cannot
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
fn void foo2(int x) @format(0) // #error: '@format()' is only valid for a function
|
|
{}
|
|
|
|
fn void foo3(int x, args...) @format(0) // #error: The '@format()' format
|
|
{}
|
|
|
|
fn void foo4(String #x, args...) @format(0) // #error: '@format()' cannot be used with lazy arguments
|
|
{}
|