[Issue 10692] New: Deprecation isn't checked using alias this
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 21 19:16:05 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10692
Summary: Deprecation isn't checked using alias this
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: Jesse.K.Phillips+D at gmail.com
--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2013-07-21 19:16:04 PDT ---
I would expect accessing members of B to fail when accessed with alias this:
struct B {
int i;
}
struct A {
B b;
deprecated alias b this;
}
void main() {
A a;
a.i = 5; // Deprecated
assert(a.i == 5); // Deprecated
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list