struct Foo { @property bool isOne() { return true; } } struct Bar { Foo foo; alias foo this; alias isOne isTwo; } void main() { } test.d(10): Error: undefined identifier isOne Essentially I wanted to partially merge two types which had a similar structure, but I still wanted to keep the different APIs. I can use property getters and setters to forward a function, but I thought an alias would help me more by allowing me to alias a symbol that was going to be merged via the alias this feature. So while it's not crucially important, I'm making this a feature request.
Pretty sure this can't work for the same reason `alias foo.isOne isTwo` doesn't work - you can't alias an expression.
`alias foo.isOne isTwo` actually works but this is a bug since it's a DotIdentifier expression.
Closing this as invalid.