Do not consider descriptors equality as a reason not to refine type
Otherwise, it results in skipping refinement for JobNode when requested from JVM module while it's necessary because CompletionHandlerBase's content depends on the module
This commit is contained in:
committed by
Dmitry Savvinov
parent
9c27abde7f
commit
2bf6bd3724
@@ -100,8 +100,6 @@ object KotlinTypeFactory {
|
||||
val basicDescriptor = constructor.declarationDescriptor
|
||||
val descriptor = basicDescriptor?.let { kotlinTypeRefiner.refineDescriptor(it) } ?: return null
|
||||
|
||||
if (descriptor == basicDescriptor) return null
|
||||
|
||||
if (descriptor is TypeAliasDescriptor) {
|
||||
return ExpandedTypeOrRefinedConstructor(descriptor.computeExpandedType(arguments), null)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user