[FIR] Add forgotten resolution of annotations on get class calls

This commit is contained in:
Dmitriy Novozhilov
2022-06-23 12:19:58 +03:00
committed by teamcity
parent c16955ff3f
commit fcc5b804a8
7 changed files with 45 additions and 0 deletions
@@ -0,0 +1,16 @@
FILE: annotationOnGetClassCall.kt
public final annotation class Ann : R|kotlin/Annotation| {
public constructor(x: R|kotlin/Long|, s: R|kotlin/String|): R|Ann| {
super<R|kotlin/Any|>()
}
public final val x: R|kotlin/Long| = R|<local>/x|
public get(): R|kotlin/Long|
public final val s: R|kotlin/String| = R|<local>/s|
public get(): R|kotlin/String|
}
public final fun test(): R|kotlin/Unit| {
@R|Ann|(s = String(hello), x = Long(1)) <getClass>(Q|kotlin/String|)
}
@@ -0,0 +1,5 @@
annotation class Ann(val x: Long, val s: String)
fun test() {
<!WRONG_ANNOTATION_TARGET!>@Ann(s = "hello", x = 1)<!> String::class
}