has anyone tried using the `IntRange` annotation w...
# android
r
has anyone tried using the
IntRange
annotation with Kotlin’s construction params? I can’t get the lint check to work. Is there an idiomatic way to this in Kotlin? Use-case:
Copy code
class Example(
  @param:IntRange(from = 1)
   val limit: Int = 1
)
g
Try
@get:IntRange
r
I think it might have been an issue with the Android support library compatibility. The same class has lint check on androidx