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 21812 - __traits(allMembers) on types with value tuples return ghost members #12406

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

BorisCarvajal
Copy link
Member

Another side effect is that -vcg-ast will output:

S!(int, float)
{
    struct S
    {
        (int, float) args;
    }
}

instead of:

S!(int, float)
{
    struct S
    {
        (int, float) args;
        int __args_field_0;
        float __args_field_1;
    }
}

which looks more correctly I think.

@BorisCarvajal
Copy link
Member Author

@dlang-bot is sleeping, I'm force pushing.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @BorisCarvajal!

Bugzilla references

Auto-close Bugzilla Severity Description
21812 normal __traits(allMembers) on types with value tuples return ghost members

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 + dmd#12406"

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

Successfully merging this pull request may close these issues.

3 participants