FIR inference: add constraint system from receiver
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fda777ecae
commit
206afde9cc
@@ -21,6 +21,7 @@ class CandidateFactory(
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
val system = inferenceComponents.createConstraintSystem()
|
val system = inferenceComponents.createConstraintSystem()
|
||||||
|
callInfo.explicitReceiver?.let { system.addSubsystemFromExpression(it) }
|
||||||
callInfo.arguments.forEach {
|
callInfo.arguments.forEach {
|
||||||
system.addSubsystemFromExpression(it)
|
system.addSubsystemFromExpression(it)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user