D-Programming-Language/dmd — pull request #3329 by CyberShadow (2014-02-22 19:08:51+00:00)
Title: [WIP/RFC] fix Issue 12223 - __traits(getMember,...) needed for aliases

This is my attempt at implementing [issue 12223](https://d.puremagic.com/issues/show_bug.cgi?id=12223), a `__traits` primitive to evaluate a symbol with a given `this`.

This implementation works - mostly. However, it doesn't work when chaining the `child trait - the `DotExp` never seems to get lowered, and the backend chokes on it. Perhaps someone can give me a hint at what am I doing wrong?