Also, shouldn't an assert always reproted as a bug?
struct Test {} void main() { Test t,t2; bool a = &t is &t2; // -> works! bool b = cast(Test*)1 is &t; // -> Assertion failure: '0' on line 875 in file 'constfold.c' } greets Matthias
Also, shouldn't an assert always reproted as a bug?
struct Test {} void main() { Test t,t2; bool a = &t is &t2; // -> works! bool b = cast(Test*)1 is &t; // -> Assertion failure: '0' on line 875 in file 'constfold.c' } greets Matthias