Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 7452 (@safe inference failed with a function literal inside) #700

Merged
merged 2 commits into from
Feb 19, 2012
Merged

Bug 7452 (@safe inference failed with a function literal inside) #700

merged 2 commits into from
Feb 19, 2012

Conversation

kennytm
Copy link
Contributor

@kennytm kennytm commented Feb 7, 2012

Bug 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. See also #544.

This commit avoids inferring @safe when a child function type checks
the ancestor's isSafe() when inference is still in progress.
Strangely this change also fixes bug 6332. See also #544.
WalterBright added a commit that referenced this pull request Feb 19, 2012
Bug 7452 (@safe inference failed with a function literal inside)
@WalterBright WalterBright merged commit b9938ba into dlang:master Feb 19, 2012
braddr added a commit to braddr/dmd that referenced this pull request Oct 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants