Am 19.02.2012 16:44, schrieb Daniel Murphy:
"Benjamin Thaut"<c...@benjamin-thaut.de> wrote in message
news:jhr584$2d1v$1...@digitalmars.com...
Thank you very much that helped a lot. I was able to reduce it to the
following code:
class Foo
{
@property EntityId entityId()
{
return EntityId(3);
}
}
struct EntityId
{
uint id;
alias id this;
this(uint id)
{
this.id = id;
}
}
int main(string[] argv)
{
Foo foo = null;
auto id = (foo) ? foo.entityId : -1;
return 0;
}
"Daniel Murphy"<yebbl...@nospamgmail.com> wrote in message
news:jhqua0$20c0$1...@digitalmars.com...
It shouldn't be happening, but I'd guess it's something to do with alias
this with integral types (huge guess). How big is the project?
Damn I'm good.
Create a bug ticket for it:
http://d.puremagic.com/issues/show_bug.cgi?id=7545
The bug was introduced because I had to replace a typedef with a wrapper
struct.
Kind Regards
Benjamin Thaut