mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
21 lines
313 B
C
21 lines
313 B
C
// #target: macos-x64
|
|
module test;
|
|
|
|
def Callback = fn void();
|
|
def Callback2 = fn void();
|
|
|
|
def GetCallback = fn Callback2**[][123]*();
|
|
|
|
fn Callback**[][123]* tester()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
GetCallback x = &tester;
|
|
|
|
|
|
def GetCallbackOpt = fn Callback2!();
|
|
|
|
fn Callback2! tester2() => null;
|
|
|
|
GetCallbackOpt y = &tester2; |