Thanks for your response, regarding the
@StringRes the problem is just how you define it (since you can’t have a body for an
annotation class ). As for the
@IntDef it complains and that’s why you have to go through the
Maybe I should make my article clearer regarding this point.