Android Studio没有';t使用@IdRes时突出显示无效的Kotlin接收器

Android Studio没有';t使用@IdRes时突出显示无效的Kotlin接收器,android,android-studio,kotlin,annotations,kotlin-extension,Android,Android Studio,Kotlin,Annotations,Kotlin Extension,我希望使用扩展: fun @receiver:IdRes Int.findView() = findViewById<View>(this) fun@receiver:IdRes Int.findView()=findviewbyd(此) 在R.id中未定义的资源上,将突出显示调用,但它不会: 这是虫子吗 编辑 链接的问题和答案不回答此问题。在本例中,我特别询问了Kotlin的@receiver注释,而不是一些enum@IntDef注释。另外,Kotlin的当前版本是1.2.5

我希望使用扩展:

fun @receiver:IdRes Int.findView() = findViewById<View>(this)
fun@receiver:IdRes Int.findView()=findviewbyd(此)
R.id
中未定义的资源上,将突出显示调用,但它不会:

这是虫子吗

编辑


链接的问题和答案不回答此问题。在本例中,我特别询问了Kotlin的
@receiver
注释,而不是一些enum
@IntDef
注释。另外,Kotlin的当前版本是1.2.51,而不是1.0.3

@davidawson两年前的问题如何回答这个问题?什么都没有receivers@IntDef中不完全支持编译时lint检查Kotlin@DavidRawson但它是
@IdRes
,而不是
@IntDef