Put fix in 9123c4f73baf77f8a50dede6c890c46f5ffafd6c under the inference compatibility flag

This commit is contained in:
Victor Petukhov
2020-09-23 13:21:38 +03:00
parent bfb46befa5
commit 25ea3df5ca
14 changed files with 209 additions and 10 deletions
@@ -0,0 +1,14 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.resolve.calls.inference
import org.jetbrains.kotlin.config.LanguageFeature
import org.jetbrains.kotlin.config.LanguageVersionSettings
class InferenceCompatibilityCheckerImpl(val languageVersionSettings: LanguageVersionSettings) : InferenceCompatibilityChecker {
override val isCompatibilityModeEnabled: Boolean
get() = languageVersionSettings.getFeatureSupport(LanguageFeature.InferenceCompatibility) == LanguageFeature.State.ENABLED
}