added constraint position argument
This commit is contained in:
+1
-1
@@ -239,7 +239,7 @@ public class ExpressionTypingUtils {
|
||||
|
||||
ReceiverDescriptor receiverParameter = receiverArgument.getReceiverParameter();
|
||||
if (expectedReceiver.exists() && receiverParameter.exists()) {
|
||||
constraintSystem.addSubtypingConstraint(receiverType, receiverParameter.getType());
|
||||
constraintSystem.addSubtypingConstraint(receiverType, receiverParameter.getType(), ConstraintPosition.RECEIVER_POSITION);
|
||||
}
|
||||
else if (expectedReceiver.exists() || receiverParameter.exists()) {
|
||||
// Only one of receivers exist
|
||||
|
||||
Reference in New Issue
Block a user