On 12/25/2012 10:53 AM, evilrat wrote:
i'm not D expert, but isn't the first statement(b.bar_) evaluated to b.opCall(Foo.opCall)? so the first assert may be true in this case
i dunno. i'm no D expert either ;-) BTW its interesting that while the following assertion fails at runtime: assert(!__traits(compiles, b.bar_)); the assertion below executes without errors (as expected): assert(!__traits(compiles, b.bar_ == 20)); regards, r_m_r
