[LL API] Get designation correctly for enum value members (KTIJ-23458)

Although being a 'KtClass' in the PSI, 'KtEnumEntry' is a callable in
Analysis API, and its direct members should also be treated as local.
This commit is contained in:
Yan Zhulanow
2022-11-01 23:15:23 +09:00
committed by teamcity
parent 4d41ac09df
commit b770e5d02f
4 changed files with 26 additions and 15 deletions
@@ -0,0 +1,7 @@
enum class Foo {
VALUE {
/*PLACE*/fun run() = 1
}
}
/*ONAIR*/fun box(): Int = 0
@@ -0,0 +1,3 @@
public final [BODY_RESOLVE] fun box(): R|kotlin/Int| {
^box Int(0)
}