"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.
