<Why can't a KCallable reference be annotated in K...
# forum
r
Why can't a KCallable reference be annotated in Kotlin directly? Today, I found a discrepancy in Android Studio IDE which led me to post this question. It looks like a corner case that the language interpreter does not support or resolve properly unless I am overlooking something. In this code snippet, I am trying to annotate a reference to the callable of a property named “task” and the IDE does something odd. It doesn’t recognize (color-code) the annotation used in x2 term, but it does recognize it in x1 term. The compiler also doesn’t generate any...