← Back to index
|
Original Bugzilla link
Bug 19284 – alias this not used in nested functions of a method
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-10-02T21:27:58Z
Last change time
2018-10-11T07:59:26Z
Assigned to
No Owner
Creator
Eyal
Comments
Comment #0
by eyal — 2018-10-02T21:27:58Z
struct S { int x; } struct T { S s; alias s this; void f() { x = 1; void wrapped() { x = 1; } // <-- 'x' not found, whereas 's.x' works fine } }
Comment #1
by eyal — 2018-10-05T10:08:57Z
'this.x' also works fine there.
Comment #2
by razvan.nitu1305 — 2018-10-09T14:01:38Z
PR :
https://github.com/dlang/dmd/pull/8814
Comment #3
by github-bugzilla — 2018-10-11T07:59:25Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/d8de5fd8562ce1cf0f56bf29493704587b327946
Fix Issue 19284 - alias this not used in nested functions of a method
https://github.com/dlang/dmd/commit/7d6743dea041caa3c33866088a20172744d4e4bf
Merge pull request #8814 from RazvanN7/Issue_19284 Fix Issue 19284 - alias this not used in nested functions of a method