Am 19.02.2012 16:44, schrieb Daniel Murphy:
"Benjamin Thaut"<[email protected]> wrote in message
news:[email protected]...
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"<[email protected]> wrote in message
news:[email protected]...
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