Thread overview
[Issue 13189] `alias this` is not transitive
Nov 11, 2017
Mike
Jun 04, 2020
John Hall
Dec 17, 2022
Iain Buclaw
November 11, 2017
https://issues.dlang.org/show_bug.cgi?id=13189

Mike <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slavo5150@yahoo.com
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=5380

--
June 04, 2020
https://issues.dlang.org/show_bug.cgi?id=13189

John Hall <john.michael.hall@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.michael.hall@gmail.com

--- Comment #1 from John Hall <john.michael.hall@gmail.com> ---
When I compile below I get the error: "onlineapp.d(17): Error: no property x
for type onlineapp.T"

struct S {
    int x;
    int y;
}

struct T {
    S s;
    alias s this;
}

static assert(is(typeof(T.init.x)));
static assert(is(typeof(T.init.y)));

struct U {
    T t;
    alias x = t.x; // <-- FAIL
    alias y = t.s.x; // <-- OK
}

void main() {
}

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=13189

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=13189

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18855

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--