const and inout are exclusive, but shared isn't so. Therefore this `else` is incorrect.