The following code assert fails (bar == 1, not -10!). I've wasted a bit of time because of this happening.

void main() {
        if (int bar = foo() != 0) {
                assert(bar == -10);
        }
}

auto foo() {
        return -10;
}

Reply via email to