Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

pure functions imply scope attribute, but not return attribute #2989

Merged
merged 1 commit into from
Mar 16, 2020

Conversation

WalterBright
Copy link
Member

@WalterBright WalterBright commented Mar 15, 2020

It's better to be explicit about what's happening.

In support of dlang/dmd#10924

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + druntime#2989"

@WalterBright WalterBright changed the title pure functions infer scope, but not return pure functions imply scope attribute, but not return attribute Mar 15, 2020
@thewilsonator thewilsonator merged commit a2e4106 into dlang:master Mar 16, 2020
@WalterBright WalterBright deleted the pureReturn branch March 16, 2020 02:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants