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:
@@ -490,7 +490,7 @@ object AbstractTypeChecker {
|
||||
}
|
||||
|
||||
if (subType.isStubTypeForBuilderInference() && superType.isStubTypeForBuilderInference())
|
||||
return isStubTypeSubtypeOfAnother(subType, superType)
|
||||
return isStubTypeSubtypeOfAnother(subType, superType) || context.isStubTypeEqualsToAnything
|
||||
|
||||
if (subType.isStubType() || superType.isStubType())
|
||||
return context.isStubTypeEqualsToAnything
|
||||
|
||||
Reference in New Issue
Block a user