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

isPublicMember fails when member is an alias #818

Closed
ReneZwanenburg opened this Issue Sep 11, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@ReneZwanenburg
Contributor

ReneZwanenburg commented Sep 11, 2014

The new isRWField doesn't work if the member string refers to an alias. For example:

struct S
{
  alias foo = float;
}

pragma(msg, isRWField!(S, "foo"));

source\vibe\internal\meta\traits.d(238): Error: argument float has no protection

It's the __traits(getProtection, MEM) in isPublicMember that blows up. I'm looking for a fix.

@ReneZwanenburg

This comment has been minimized.

Show comment
Hide comment
@ReneZwanenburg

ReneZwanenburg Sep 11, 2014

Contributor

Done. I'll create a PR soon.

Contributor

ReneZwanenburg commented Sep 11, 2014

Done. I'll create a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment