Bug 23704 – need `this` for a function accessed through a member alias tuple

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-02-12T22:36:14Z
Last change time
2024-12-13T19:27:17Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Max Samukha
Moved to GitHub: dmd#20231 →

Comments

Comment #0 by maxsamukha — 2023-02-12T22:36:14Z
alias aliases(a...) = a; struct V { int _0() { return 0; } int _1; alias t = aliases!(_0, _1); alias t this; } void main() { V v; auto x1 = v[0]; // fails auto x2 = v.t[0]; // fails auto x3 = v[1]; // ok auto x4 = v.t[1]; // ok }
Comment #1 by robert.schadek — 2024-12-13T19:27:17Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20231 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB