Files
kotlin-fork/idea/testData/quickfix/moveReceiverAnnotation/notExtensionFun.kt
T
Mikhail Glukhikh d08b18f5f8 Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests
2017-07-07 18:15:06 +03:00

10 lines
285 B
Kotlin
Vendored

// "Move annotation to receiver type" "false"
// ERROR: '@receiver:' annotations can only be applied to the receiver type of extension function or extension property declarations
// ACTION: Make internal
// ACTION: Make private
annotation class Ann
@receiver:Ann<caret>
fun foo() {
}