Pseudocode: Filter out nulls before combining type predicates
#KT-5732 Fixed
This commit is contained in:
@@ -1189,7 +1189,7 @@ public class JetControlFlowProcessor {
|
|||||||
);
|
);
|
||||||
Map<PseudoValue, TypePredicate> valuesToTypePredicates = SmartFMap
|
Map<PseudoValue, TypePredicate> valuesToTypePredicates = SmartFMap
|
||||||
.<PseudoValue, TypePredicate>emptyMap()
|
.<PseudoValue, TypePredicate>emptyMap()
|
||||||
.plus(delegateValue, PseudocodePackage.and(typePredicates));
|
.plus(delegateValue, PseudocodePackage.and(KotlinPackage.filterNotNull(typePredicates)));
|
||||||
builder.magic(property, null, Collections.singletonList(delegateValue), valuesToTypePredicates, MagicKind.VALUE_CONSUMER);
|
builder.magic(property, null, Collections.singletonList(delegateValue), valuesToTypePredicates, MagicKind.VALUE_CONSUMER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user