Is there any setup needed for support annotations ...
# android
o
Is there any setup needed for support annotations to work in Kotlin? I can annotate a function parameter with `@StringRes`:
fun foo(@StringRes bar: Int { ......
But the IDE doesn’t warn me when I pass in an invalid `Int`:
foo(5)
When calling this method from Java, it does work. As far as I noticed, the same happens with all other variants like
@DrawableRes
,
@AnimatorRes
,
@IntDef
. Using AS 2.3 RC with Kotlin 1.1 RC