diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/InferenceSession.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/InferenceSession.kt new file mode 100644 index 00000000000..28c7c7c2b0d --- /dev/null +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/InferenceSession.kt @@ -0,0 +1,20 @@ +/* + * Copyright 2000-2018 JetBrains s.r.o. 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.components + +import org.jetbrains.kotlin.resolve.calls.model.CallResolutionResult + +interface InferenceSession { + companion object { + val default = object : InferenceSession { + override fun shouldFixTypeVariables(): Boolean = false + override fun addPartiallyResolvedCall(call: CallResolutionResult) {} + } + } + + fun shouldFixTypeVariables(): Boolean + fun addPartiallyResolvedCall(call: CallResolutionResult) +} \ No newline at end of file diff --git a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/KotlinCallCompleter.kt b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/KotlinCallCompleter.kt index 3dfd8270c52..ebd0e6300f0 100644 --- a/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/KotlinCallCompleter.kt +++ b/compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/KotlinCallCompleter.kt @@ -176,15 +176,3 @@ class KotlinCallCompleter( ) } } - -interface InferenceSession { - companion object { - val default = object : InferenceSession { - override fun shouldFixTypeVariables(): Boolean = false - override fun addPartiallyResolvedCall(call: CallResolutionResult) {} - } - } - - fun shouldFixTypeVariables(): Boolean - fun addPartiallyResolvedCall(call: CallResolutionResult) -} \ No newline at end of file