0

I expected that using extension:

fun @receiver:IdRes Int.findView() = findViewById<View>(this)

On resource that is not defined in R.id would highlight the call, but it doesn't:

enter image description here

Is this a bug?

EDIT

Linked question and answers do not answer this question. In this case, I asked specifically about Kotlin's @receiver annotation, not some enum @IntDef annotation. Also, the current version of Kotlin is 1.2.51, not 1.0.3

xinaiz
  • 7,744
  • 6
  • 34
  • 78

0 Answers0