Uast: converting Unit to void on type mapping (KT-25249)
This commit is contained in:
+1
@@ -82,6 +82,7 @@ private fun psiType(kotlinType: KotlinType, context: PsiElement): PsiType? {
|
||||
"kotlin.Char" -> PsiType.CHAR
|
||||
"kotlin.Double" -> PsiType.DOUBLE
|
||||
"kotlin.Float" -> PsiType.FLOAT
|
||||
"kotlin.Unit" -> PsiType.VOID
|
||||
"kotlin.String" -> PsiType.getJavaLangString(context.manager, context.resolveScope)
|
||||
else -> PsiType.getTypeByName(typeFqName, context.project, context.resolveScope)
|
||||
}
|
||||
|
||||
+1
@@ -82,6 +82,7 @@ private fun psiType(kotlinType: KotlinType, context: PsiElement): PsiType? {
|
||||
"kotlin.Char" -> PsiType.CHAR
|
||||
"kotlin.Double" -> PsiType.DOUBLE
|
||||
"kotlin.Float" -> PsiType.FLOAT
|
||||
"kotlin.Unit" -> PsiType.VOID
|
||||
"kotlin.String" -> PsiType.getJavaLangString(context.manager, context.resolveScope)
|
||||
else -> PsiType.getTypeByName(typeFqName, context.project, context.resolveScope)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user