D-Programming-Language/dmd — pull request #700 by kennytm (2012-02-07 21:00:08+00:00)
Title: Bug 7452 (@safe inference failed with a function literal inside)

[Bug 7452](http://d.puremagic.com/issues/show_bug.cgi?id=7452).

This commit avoids inferring `@safe` when a child function type checks the ancestor's `isSafe()` when inference is still in progress, by defining a `isSafeBypassingInference()` function (similar to `isPureBypassingInference()`).

Strangely this change also fixes [bug 6332](http://d.puremagic.com/issues/show_bug.cgi?id=6332). See also #544.