mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 00:21:35 +00:00
25 lines
821 B
Kotlin
Vendored
25 lines
821 B
Kotlin
Vendored
annotation class Ann
|
|
|
|
<!INAPPLICABLE_RECEIVER_TARGET, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@receiver:Ann<!>
|
|
class SomeClass {
|
|
|
|
<!INAPPLICABLE_RECEIVER_TARGET, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@receiver:Ann<!>
|
|
constructor(<!INAPPLICABLE_RECEIVER_TARGET!>@receiver:Ann<!> <!UNUSED_PARAMETER!>a<!>: String)
|
|
|
|
<!INAPPLICABLE_RECEIVER_TARGET!>@receiver:Ann<!>
|
|
protected val simpleProperty: String = "text"
|
|
|
|
<!INAPPLICABLE_RECEIVER_TARGET!>@receiver:Ann<!>
|
|
fun anotherFun() {
|
|
<!INAPPLICABLE_RECEIVER_TARGET!>@receiver:Ann<!>
|
|
val <!UNUSED_VARIABLE!>localVariable<!> = 5
|
|
}
|
|
|
|
val @receiver:Ann String.extensionProperty2: String
|
|
get() = "A"
|
|
}
|
|
|
|
fun @receiver:Ann String.length2() = length
|
|
|
|
val @receiver:Ann String.extensionProperty: String
|
|
get() = "A" |