vctrs::vec_case_when(
conditions = list(TRUE),
values = list(NA),
default = "a"
)
#> Error in `vctrs::vec_case_when()`:
#> ! Can't combine <logical> and `default` <character>.
vctrs::vec_ptype2(NA, "a")
#> character(0)
I think this is because we do vec_ptype_common() of values which gives logical() which we then combine against default, but logical() doesn't look unspecified() so it errors.