Annotations on type projection belong to type reference
This commit is contained in:
+3
-1
@@ -1,3 +1,5 @@
|
||||
annotation class base
|
||||
|
||||
val x: List<@<!DEBUG_INFO_MISSING_UNRESOLVED!>base<!> String>? = null
|
||||
val x: List<@base String>? = null
|
||||
|
||||
val y: List<@[base] String>? = null
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
package
|
||||
|
||||
public val x: kotlin.List<kotlin.String>? = null
|
||||
public val x: kotlin.List<@base() kotlin.String>? = null
|
||||
public val y: kotlin.List<@base() kotlin.String>? = null
|
||||
|
||||
@kotlin.annotation.annotation() public final class base : kotlin.Annotation {
|
||||
public constructor base()
|
||||
|
||||
+2
-3
@@ -79,7 +79,7 @@ JetFile: TypeAnnotations.kt
|
||||
TYPE_ARGUMENT_LIST
|
||||
PsiElement(LT)('<')
|
||||
TYPE_PROJECTION
|
||||
MODIFIER_LIST
|
||||
TYPE_REFERENCE
|
||||
ANNOTATION
|
||||
PsiElement(AT)('@')
|
||||
PsiElement(LBRACKET)('[')
|
||||
@@ -90,8 +90,7 @@ JetFile: TypeAnnotations.kt
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('x')
|
||||
PsiElement(RBRACKET)(']')
|
||||
PsiWhiteSpace(' ')
|
||||
TYPE_REFERENCE
|
||||
PsiWhiteSpace(' ')
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('A')
|
||||
|
||||
Reference in New Issue
Block a user