[FIR] Load Java annotations named arguments properly (see KT-43584)

This commit is contained in:
Mikhail Glukhikh
2020-11-25 15:35:01 +03:00
parent e6f380182a
commit 9b30655d66
5 changed files with 49 additions and 15 deletions
@@ -44,6 +44,7 @@ inline val FirCall.argumentMapping: LinkedHashMap<FirExpression, FirValueParamet
get() = (argumentList as? FirResolvedArgumentList)?.mapping
fun FirExpression.toResolvedCallableReference(): FirResolvedNamedReference? {
if (this is FirWrappedArgumentExpression) return expression.toResolvedCallableReference()
return (this as? FirResolvable)?.calleeReference as? FirResolvedNamedReference
}