void foo(int delegate(ref int[1]) spam) {}
void main() {
foo((ref x) => 0); // line3, OK
foo(x => 0); // line4, Error
}
Do you think "ref" annotation should be required at the call site?
This is the Bugzilla thread. Hara has already implemented the
"ref" inference, but he's not sure if it's a good idea:
http://d.puremagic.com/issues/show_bug.cgi?id=9423 Bye, bearophile
