mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
10 lines
440 B
Kotlin
Vendored
10 lines
440 B
Kotlin
Vendored
// !LANGUAGE: +RestrictionOfWrongAnnotationsWithUseSiteTargetsOnTypes
|
|
|
|
@Target(AnnotationTarget.VALUE_PARAMETER)
|
|
annotation class Fancy
|
|
|
|
fun @receiver:Fancy String.myExtension() { }
|
|
val @receiver:Fancy Int.asVal get() = 0
|
|
|
|
fun ((<!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@receiver:Fancy<!> Int) -> Unit).complexReceiver1() {}
|
|
fun ((Int) -> <!WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@receiver:Fancy<!> Unit).complexReceiver2() {} |