← Back to index
|
Original Bugzilla link
Bug 18588 – alias this inside named mixin template
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-03-10T16:59:36Z
Last change time
2024-12-13T18:57:46Z
Assigned to
No Owner
Creator
Simen Kjaeraas
Moved to GitHub: dmd#19407 →
Comments
Comment #0
by simen.kjaras — 2018-03-10T16:59:36Z
struct S { mixin foo!() bar; } template foo() { int n; alias n this; } unittest { int n = S.init; } The alias this is inside a named member of S, and it is counterintuitive that it affects S.
Comment #1
by robert.schadek — 2024-12-13T18:57:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/19407
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB