Fix "operator modifier required" errors in project
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ class ClsStubBuilderComponents(
|
||||
}
|
||||
|
||||
interface TypeParameters {
|
||||
fun get(id: Int): Name
|
||||
operator fun get(id: Int): Name
|
||||
|
||||
fun child(nameResolver: NameResolver, innerTypeParameters: List<ProtoBuf.TypeParameter>)
|
||||
= TypeParametersImpl(nameResolver, innerTypeParameters, parent = this)
|
||||
|
||||
+1
-1
@@ -42,7 +42,7 @@ import org.jetbrains.kotlin.types.checker.KotlinTypeChecker
|
||||
import org.jetbrains.kotlin.types.typeUtil.makeNotNullable
|
||||
import java.util.*
|
||||
|
||||
internal fun KotlinType.contains(inner: KotlinType): Boolean {
|
||||
internal operator fun KotlinType.contains(inner: KotlinType): Boolean {
|
||||
return KotlinTypeChecker.DEFAULT.equalTypes(this, inner) || getArguments().any { inner in it.getType() }
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public interface KotlinPsiRange {
|
||||
|
||||
val empty: Boolean get() = this is Empty
|
||||
|
||||
fun contains(element: PsiElement): Boolean = getTextRange().contains(element.getTextRange() ?: TextRange.EMPTY_RANGE)
|
||||
operator fun contains(element: PsiElement): Boolean = getTextRange().contains(element.getTextRange() ?: TextRange.EMPTY_RANGE)
|
||||
|
||||
fun match(scope: PsiElement, unifier: KotlinPsiUnifier): List<UnificationResult.Matched> {
|
||||
val elements = elements.filter(SIGNIFICANT_FILTER)
|
||||
|
||||
Reference in New Issue
Block a user