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

fix Issue 12527 - Cannot make @system function/delegate alias in a @s… #5867

Merged
merged 1 commit into from Jun 17, 2016

Conversation

WalterBright
Copy link
Member

…afe section

The attributes should not be overridable in this manner. This may be disruptive. Have to see.

@WalterBright
Copy link
Member Author

Seems to not be disruptive at all.

{
if (sc.stc & STCsafe)
tf.trust = TRUSTsafe;
if (sc.stc & STCsystem)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
12527 Cannot make @System function/delegate alias in a @safe section

@andralex
Copy link
Member

Auto-merge toggled on


@system:
alias Fun = void function() @safe;
pragma (msg, Fun.stringof);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pragma msg looks like it was needed only for debugging.

@andralex andralex merged commit b67694a into dlang:master Jun 17, 2016
@WalterBright WalterBright deleted the fix12527 branch June 17, 2016 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants