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

isPublicMember fails when member is an alias #818

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

isPublicMember fails when member is an alias #818

ReneZwanenburg opened this issue Sep 11, 2014 · 1 comment

Comments

@ReneZwanenburg
Copy link
Contributor

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
Copy link
Contributor Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant