https://issues.dlang.org/show_bug.cgi?id=20596 --- Comment #1 from johanengelen at weka.io --- Extra note: the error is only triggered if the delegate is defined in an @nogc function. Without @nogc, this is a silent performance regression (or worse). --