9a4a3d1f49
^KT-56543 Merge-request: KT-MR-9299 Merged-by: Dmitrii Gridin <dmitry.gridin@jetbrains.com>
13 lines
563 B
Kotlin
Vendored
13 lines
563 B
Kotlin
Vendored
// IGNORE_REVERSED_RESOLVE
|
|
@Repeatable
|
|
@Target( AnnotationTarget.TYPE_PARAMETER)
|
|
annotation class TypeParameterAnn(val name: String)
|
|
|
|
interface Generic<Z>
|
|
|
|
fun <<!MISPLACED_TYPE_PARAMETER_CONSTRAINTS!>@TypeParameterAnn("T") T: Any<!>> whereClauseWithAnnotation() where <!ANNOTATION_IN_WHERE_CLAUSE_ERROR!>@TypeParameterAnn("Prohibit me!!!")<!> T : Generic<String> {
|
|
}
|
|
|
|
class Foo<<!MISPLACED_TYPE_PARAMETER_CONSTRAINTS!>@TypeParameterAnn("T") T: Any<!>> () where <!ANNOTATION_IN_WHERE_CLAUSE_ERROR!>@TypeParameterAnn("Prohibit me!!!")<!> T : Generic<String> {
|
|
}
|