and for (cond ? x : 42) compiler should emit error too, 'causeexact return type can't be determined. maybe it should do this only for'auto ref' though.
No, the type of (cond ? x : 42) is always `int`, the `ref` already gets lost inside the ternary operator. So in this case, it behaves correctly.
