[AA] Provide expected type for annotation entry argument

^KTIJ-19863
This commit is contained in:
aleksandrina-streltsova
2023-06-15 14:07:10 +03:00
committed by teamcity
parent fa6b1e24f9
commit 3477d35168
9 changed files with 78 additions and 8 deletions
@@ -0,0 +1,4 @@
annotation class A(val n: Int)
@A(a<caret>v)
class B
@@ -0,0 +1,5 @@
expression: av
expected type: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/Int
@@ -0,0 +1,5 @@
class Base(val p1: Int, val p2: Int)
class Derived(override val p1: Int, override val p2: Int) : Base(p1, p2) {
constructor(s: String) : this(s.length, a<caret>v)
}
@@ -0,0 +1,5 @@
expression: av
expected type: KtUsualClassType:
annotationsList: []
ownTypeArguments: []
type: kotlin/Int