gmqcc/tests/functions-as-params.qc

13 lines
175 B
C++

void(string, string) print = #1;
string() getter = {
return "correct";
};
void(string() f) printer = {
print(f(), "\n");
};
void() main = {
printer(getter);
};