Dropped inspection for functions matching operator convention - only intention left
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.AddOperatorModifierIntention
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
fun <caret>contains(other: A): Boolean = true
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
operator fun <caret>contains(other: A): Boolean = true
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
class A {
|
||||
fun <caret>contains(other: A): Int = -1
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class A {
|
||||
}
|
||||
|
||||
fun A.<caret>plus(other: A): A = A()
|
||||
@@ -0,0 +1,4 @@
|
||||
class A {
|
||||
}
|
||||
|
||||
operator fun A.<caret>plus(other: A): A = A()
|
||||
@@ -0,0 +1,9 @@
|
||||
open class A {
|
||||
open fun plus(other: A): A = A()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun <caret>plus(other: A): A {
|
||||
return super.plus(other)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
open class A {
|
||||
open fun plus(other: A): A = A()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override operator fun <caret>plus(other: A): A {
|
||||
return super.plus(other)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// IS_APPLICABLE: false
|
||||
open class A {
|
||||
open operator fun plus(a: A) = A()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun plu<caret>s(a: A) = A()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
public fun <caret>plus(other: A): A = A()
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A {
|
||||
public operator fun plus(other: A): A = A()
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
class A {
|
||||
}
|
||||
|
||||
fun <caret>plus(other: A): A = A()
|
||||
Reference in New Issue
Block a user