[NI] Fix exception: don't try to compute type depth on null type
#KT-32184 Fixed
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ class ResolvedAtomCompleter(
|
||||
val substitutedTypes = returnTypes.filterNotNull()
|
||||
// we have some unsubstituted types
|
||||
if (substitutedTypes.isEmpty()) return false
|
||||
val commonReturnType = CommonSupertypes.commonSupertype(returnTypes)
|
||||
val commonReturnType = CommonSupertypes.commonSupertype(substitutedTypes)
|
||||
return commonReturnType.isUnit()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user