[Analysis API] Render annotations of type parameters
This commit is contained in:
committed by
Space Team
parent
0c2e3d2d48
commit
1a10e0fdb6
+3
-1
@@ -1,4 +1,6 @@
|
||||
interface List<out T : Any> {
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER) annotation class A
|
||||
|
||||
interface List<@A out T : Any> {
|
||||
operator fun get(index: Int): T
|
||||
|
||||
infix fun concat(other: List<T>): List<T>
|
||||
|
||||
+4
-1
@@ -1,4 +1,7 @@
|
||||
interface List<out T : Any> {
|
||||
@Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE_PARAMETER])
|
||||
annotation class A
|
||||
|
||||
interface List<@A out T : Any> {
|
||||
infix fun concat(other: List<T>): List<T>
|
||||
|
||||
operator fun get(index: Int): T
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// DO_NOT_CHECK_NON_PSI_SYMBOL_RESTORE_K1
|
||||
|
||||
@Target(AnnotationTarget.TYPE_PARAMETER) annotation class A
|
||||
|
||||
fun <@A T> <caret>T.test() {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
@A T
|
||||
@@ -0,0 +1,13 @@
|
||||
KtTypeParameterSymbol:
|
||||
annotationsList: [
|
||||
A()
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
isReified: false
|
||||
name: T
|
||||
origin: SOURCE
|
||||
typeParameters: []
|
||||
upperBounds: []
|
||||
variance: INVARIANT
|
||||
getContainingModule: KtSourceModule "Sources of main"
|
||||
deprecationStatus: null
|
||||
Reference in New Issue
Block a user