From c1c464eeb5a8cdd966c6e38b7cce8571402b0594 Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Mon, 6 May 2019 18:19:25 +0300 Subject: [PATCH] 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 --- .../kotlin/idea/project/NewInferenceForIDEAnalysisComponent.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/project/NewInferenceForIDEAnalysisComponent.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/project/NewInferenceForIDEAnalysisComponent.kt index c78aa957449..3647de087c2 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/project/NewInferenceForIDEAnalysisComponent.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/project/NewInferenceForIDEAnalysisComponent.kt @@ -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) {