Seems like an arbitrary limitation of
? :
. I don't see any reason why it couldn't deduce the type of {-1}
from the type of the other operand, but apparently that's not allowed.