New J2K: fix exception when met PsiLambdaParameterType

#KT-35431 fixed
This commit is contained in:
Ilya Kirillov
2020-01-10 16:51:11 +03:00
parent 5be80be74d
commit a10f37dd50
@@ -116,6 +116,8 @@ class JKTypeFactory(val symbolProvider: JKSymbolProvider) {
JKCapturedType(fromPsiType(type.wildcard) as JKWildCardType)
is PsiIntersectionType -> // TODO what to do with intersection types? old j2k just took the first conjunct
fromPsiType(type.representative)
is PsiLambdaParameterType -> // Probably, means that we have erroneous Java code
JKNoType
else -> throw Exception("Invalid PSI ${type::class.java}")
}