Add constraints between two different stub variables instead of creating constraint error due to T1 isn't subtype of T2
^KT-44241 Fixed
This commit is contained in:
+3
-1
@@ -446,7 +446,9 @@ object NewCommonSuperTypeCalculator {
|
||||
}
|
||||
|
||||
val equalToEachOtherType = arguments.firstOrNull { potentialSuperType ->
|
||||
arguments.all { AbstractTypeChecker.equalTypes(this, it.getType(), potentialSuperType.getType()) }
|
||||
arguments.all {
|
||||
AbstractTypeChecker.equalTypes(this, it.getType(), potentialSuperType.getType(), stubTypesEqualToAnything = false)
|
||||
}
|
||||
}
|
||||
|
||||
return if (equalToEachOtherType == null) {
|
||||
|
||||
Reference in New Issue
Block a user