Add kdoc for ConstraintSystemCompletionMode.PARTIAL

This commit is contained in:
Denis.Zharkov
2023-08-08 14:02:21 +02:00
committed by Space Team
parent 6048d52a97
commit f4004fb06a
@@ -7,6 +7,17 @@ package org.jetbrains.kotlin.resolve.calls.inference.components
enum class ConstraintSystemCompletionMode {
FULL,
/**
* This mode allows us to infer variables in calls, which have enough type-info to be completed right-away
* It can also trigger analysis of some postponed arguments
* We can't treat it as a plain optimization, because it affects the overload resolution in some cases
* e.g:
* ```kotlin
* val x: Int = 1
* x.plus(run { x }) // Here, to select plus overload we need to analyze lambda
* ```
*/
PARTIAL,
UNTIL_FIRST_LAMBDA
}