strange alias behavior
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 5 15:33:16 PST 2015
On Thursday, February 05, 2015 23:08:13 Vlad Levenfeld via Digitalmars-d-learn wrote:
> I'm expecting in this code http://dpaste.dzfl.pl/ee0d3cd31734
> either line 8 should not compile, or lines 12 and 14 should have
> a totally different output. What's going on?
It looks like
alias b = that.obj;
is actually aliasing this.obj instead of that.obj for some reason, which is
definitely a compiler bug. Please report it: https://issues.dlang.org
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list