Dicebot:

It happens because attribute inference does not work properly on generated delegated for lazy argument. I think it is a bug

"lazy int x" is effectively same as "int delegate() x" and @nogc states that you can only call other @nogc functions and delegates from something annotated as @nogc.

https://issues.dlang.org/show_bug.cgi?id=12664

Bye,
bearophile

Reply via email to