Files
c3c/test/test_suite/functions/func_ptr_conversion_alias.c3t
Christoffer Lerno 8b49e6c14d Rename def to alias.
2025-03-13 11:22:27 +01:00

21 lines
321 B
Plaintext

// #target: macos-x64
module test;
alias Callback = fn void();
alias Callback2 = fn void();
alias GetCallback = fn Callback2**[][123]*();
fn Callback**[][123]* tester()
{
return null;
}
GetCallback x = &tester;
alias GetCallbackOpt = fn Callback2?();
fn Callback2? tester2() => null;
GetCallbackOpt y = &tester2;