joeamrhein
10/29/2018, 4:07 PMThis annotation is not applicable to target 'undefined target' and use site target '@param'
errors now
private fun foo(map: Map<String, @param:RawRes Int>) {}
udalov
10/29/2018, 4:28 PMjoeamrhein
10/29/2018, 4:40 PMudalov
10/29/2018, 4:43 PM@param:
use-site target? It makes no sense there because Int
is not a function parameter, which is the only place where @param:
is allowed. You probably mean Map<String, @RawRes Int>
, without @param:
, but even then I'm curious how exactly do you rely on this annotation being there, because only the Kotlin reflection can read type annotations here and that support was also added only in 1.3joeamrhein
10/29/2018, 4:45 PMPaul Woitaschek
10/29/2018, 6:45 PM