Skip to content

Fixup funcAttributes.#3506

Merged
MartinNowak merged 1 commit intomasterfrom
unknown repository
May 5, 2014
Merged

Fixup funcAttributes.#3506
MartinNowak merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Apr 27, 2014

Fixup for #3501 which was missing support for typeof(func) or typeof(&property).

I will add this support to the documentation as well.

Note that there is one commented-out test. For some reason the @system attribute goes missing when using typeof(func) with the trait:

struct S
{
    void testSystem() @system { }
}

void main()
{
    // tuple("@system")
    pragma(msg, typeof(S.testSystem));

    // tuple("@system")
    pragma(msg, __traits(getFunctionAttributes, S.testSystem));

    // tuple()
    pragma(msg, __traits(getFunctionAttributes, typeof(S.testSystem)));
}

@MartinNowak
Copy link
Copy Markdown
Member

Can you please file a bug report for the missing @system?

@MartinNowak
Copy link
Copy Markdown
Member

Auto-merge toggled on

@ghost
Copy link
Copy Markdown
Author

ghost commented May 5, 2014

Can you please file a bug report for the missing @System?

Filed as: https://issues.dlang.org/show_bug.cgi?id=12705

MartinNowak added a commit that referenced this pull request May 5, 2014
@MartinNowak MartinNowak merged commit 0469b30 into dlang:master May 5, 2014
gulugulubing pushed a commit to gulugulubing/dmd that referenced this pull request Mar 15, 2026
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