Closed rdaly525 closed 4 years ago
This basically is question about whether the following should work: bit.ite(bv, 5)
All of the other operators / methods currently will try to coerce there operands. The fact the operand is a bit should not matter to this rule.
I am fine with removing coercion from the ITE. I am not okay with special casing bit.
Actually I think I can block this specific behavior by first trying to cast to bit, before tying to cast to bv.
I would expect the following to raise a type error. Is this expected behavior or a bug?