Thread overview
[Issue 17870] Can't alias a mix of parent and child class members
[Issue 17870] recursive template "T is nested in both"
Oct 07, 2017
bitwise
Aug 27, 2020
Boris Carvajal
Aug 27, 2020
Boris Carvajal
Aug 27, 2020
Boris Carvajal
Aug 27, 2020
Boris Carvajal
Aug 27, 2020
Dlang Bot
Dec 03, 2021
Dlang Bot
Dec 04, 2021
Dlang Bot
October 07, 2017
https://issues.dlang.org/show_bug.cgi?id=17870

bitwise <nicolas.jinchereau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicolas.jinchereau@gmail.co
                   |                            |m

--
October 14, 2017
https://issues.dlang.org/show_bug.cgi?id=17870

dlang@ryanjframe.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dlang@ryanjframe.com

--
August 27, 2020
https://issues.dlang.org/show_bug.cgi?id=17870

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris2.9@gmail.com
            Summary|recursive template "T is    |Can't alias a mix of parent
                   |nested in both"             |and child class members

--
August 27, 2020
https://issues.dlang.org/show_bug.cgi?id=17870

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All
                 OS|Windows                     |All

--
August 27, 2020
https://issues.dlang.org/show_bug.cgi?id=17870

Boris Carvajal <boris2.9@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code.viator@gmail.com

--- Comment #1 from Boris Carvajal <boris2.9@gmail.com> ---
*** Issue 17233 has been marked as a duplicate of this issue. ***

--
August 27, 2020
https://issues.dlang.org/show_bug.cgi?id=17870

--- Comment #2 from Boris Carvajal <boris2.9@gmail.com> ---
int main(string[] argv)
{
    alias allClasses = AliasSeq!(D2, BaseClassesTuple!D2);
    alias allFields = TupleOf!allClasses;
    pragma(msg, allClasses);
    pragma(msg, allFields.stringof);
    return 0;
}

Output should be:
(D2, D1, B, Object)
tuple(c, b, a)


Reduced test case:

alias AliasSeq(T...) = T;

class A
{
    int a = 1;
}

class B : A
{
    int b = 2;
    alias tup = AliasSeq!(b, a);
}

void main()
{
    static const ins = new B;
    static assert(&ins.tup[0] == &ins.b);
    static assert(&ins.tup[1] == &ins.a);
    static assert(ins.tup == AliasSeq!(2,1));
}

--
August 27, 2020
https://issues.dlang.org/show_bug.cgi?id=17870

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal created dlang/dmd pull request #11633 "Fix Issue 17870 - Can't alias a mix of parent and child class members" fixing this issue:

- Fix Issue 17870 - Can't alias a mix of parent and child class members

https://github.com/dlang/dmd/pull/11633

--
December 03, 2021
https://issues.dlang.org/show_bug.cgi?id=17870

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@12345swordy created dlang/dmd pull request #13380 "Fix Issue 17870 - Can't alias a mix of parent and child class members" fixing this issue:

- Fix Issue 17870 - Can't alias a mix of parent and child class members

https://github.com/dlang/dmd/pull/13380

--
December 04, 2021
https://issues.dlang.org/show_bug.cgi?id=17870

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13380 "Fix Issue 17870 - Can't alias a mix of parent and child class members" was merged into master:

- 7e0130e8c52fb12a2dc780edd43c2b177ff79da6 by 12345swordy:
  Fix Issue 17870 - Can't alias a mix of parent and child class members

https://github.com/dlang/dmd/pull/13380

--