Afzal Najam
10/23/2020, 5:07 AMKotlinUFunctionCallExpression
(or PsiMethod
) if the return type is an inline class? When I do this:
(uElement as KotlinUFunctionCallExpression).resolve().returnType
I just get PsiType:long
but the class is
inline class Color(val color: Long) {
}
When I remove the inline keyword, I get the real name of the class.Afzal Najam
10/23/2020, 6:02 AM(uElement as KotlinUFunctionCallExpression).resolveToUElement().sourcePsi as KtDeclaration).type()?.constructor?.declarationDescriptor.parents
seems to get the real type. Not sure if it's the best way though