Override/Implement: Fix processing of unresolved types

#KT-17350 Fixed
This commit is contained in:
Alexey Sedunov
2018-06-08 16:34:48 +03:00
parent ed8b4b761a
commit 694997651a
8 changed files with 33 additions and 1 deletions
@@ -44,6 +44,8 @@ private fun KotlinType.approximateNonDynamicFlexibleTypes(
preferNotNull: Boolean = false,
preferStarForRaw: Boolean = false
): SimpleType {
if (this is ErrorType) return this
if (isFlexible()) {
val flexible = asFlexibleType()
val lowerClass = flexible.lowerBound.constructor.declarationDescriptor as? ClassDescriptor?