Bug 18892 – Wrong type in error message for static members and alias this
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-05-21T17:00:28Z
Last change time
2018-05-28T14:10:30Z
Keywords
pull
Assigned to
No Owner
Creator
Simen Kjaeraas
Comments
Comment #0 by simen.kjaras — 2018-05-21T17:00:28Z
struct MT {
int _payload;
alias _payload this;
}
unittest {
MT a;
a.foo = 3; // Error: no property foo for type MT
MT.foo = 3; // Error: no property foo for type int
}
I'd expect both error messages to refer to MT, not int.
Comment #1 by razvan.nitu1305 — 2018-05-23T12:41:07Z