Enable new type inference algorithm for IDE analysis

Note that this change doesn't affect compilation: if a project used
 old inference, then it'll continue to use it.

 To use old inference one can uncheck "Enable new type inference..."
 option in "Kotlin Compiler" tab
This commit is contained in:
Mikhail Zarechenskiy
2019-05-06 18:19:25 +03:00
parent 1fecd15355
commit c1c464eeb5
@@ -10,7 +10,7 @@ import com.intellij.openapi.project.Project
object NewInferenceForIDEAnalysisComponent {
private const val inferenceOption = "kotlin.use.new.inference.for.ide.analysis"
private const val defaultState = false
private const val defaultState = true
@JvmStatic
fun setEnabled(project: Project, state: Boolean) {