mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
16 lines
353 B
Plaintext
16 lines
353 B
Plaintext
alias SegFaulter = fn void(char);
|
|
alias SegFaulter2 = fn void(...);
|
|
|
|
struct Foo
|
|
{
|
|
SegFaulter func;
|
|
SegFaulter2 func2;
|
|
}
|
|
|
|
fn void main()
|
|
{
|
|
Foo sa = {};
|
|
sa.func = fn (...) {}; // #error: doesn't match the required type
|
|
sa.func2 = fn (...) {}; // #error: may not use C-style vaargs. Consequently
|
|
var $f = fn (...) {}; // #error: may not use C-style
|
|
} |