Made exception from ::flip throw a type error