How can a condition and an option be written on the RHS of a function? I.e.
Clear[f, g]
(* condition on its own works fine *)
f[a_, b_Integer?Positive] := a + b
(* but doesn’t work with optional argument *)
g[a_, b_Integer?Positive : 2] := a + b