Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/withUseSiteTarget/ReceiverAnnotations.fir.kt
T

25 lines
474 B
Kotlin
Vendored

annotation class Ann
@receiver:Ann
class SomeClass {
@receiver:Ann
constructor(@receiver:Ann a: String)
@receiver:Ann
protected val simpleProperty: String = "text"
@receiver:Ann
fun anotherFun() {
@receiver:Ann
val localVariable = 5
}
val @receiver:Ann String.extensionProperty2: String
get() = "A"
}
fun @receiver:Ann String.length2() = length
val @receiver:Ann String.extensionProperty: String
get() = "A"