From 206afde9cc85d1b12df2ed53275d27102e80938a Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Wed, 17 Apr 2019 15:41:39 +0300 Subject: [PATCH] FIR inference: add constraint system from receiver --- .../org/jetbrains/kotlin/fir/resolve/calls/CandidateFactory.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CandidateFactory.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CandidateFactory.kt index 45dfb4d6695..db10af18edc 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CandidateFactory.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/CandidateFactory.kt @@ -21,6 +21,7 @@ class CandidateFactory( init { val system = inferenceComponents.createConstraintSystem() + callInfo.explicitReceiver?.let { system.addSubsystemFromExpression(it) } callInfo.arguments.forEach { system.addSubsystemFromExpression(it) }