Make "Add operator modifier" an inspection instead of intention
#KT-31533 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
5123e1f078
commit
4c62788c3e
@@ -1 +0,0 @@
|
||||
org.jetbrains.kotlin.idea.intentions.AddOperatorModifierIntention
|
||||
@@ -1,3 +0,0 @@
|
||||
class A {
|
||||
fun <caret>contains(other: A): Boolean = true
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
class A {
|
||||
operator fun <caret>contains(other: A): Boolean = true
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
class A {
|
||||
fun <caret>contains(other: A): Int = -1
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
class A {
|
||||
}
|
||||
|
||||
fun A.<caret>plus(other: A): A = A()
|
||||
@@ -1,4 +0,0 @@
|
||||
class A {
|
||||
}
|
||||
|
||||
operator fun A.<caret>plus(other: A): A = A()
|
||||
@@ -1,9 +0,0 @@
|
||||
open class A {
|
||||
open fun plus(other: A): A = A()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun <caret>plus(other: A): A {
|
||||
return super.plus(other)
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
open class A {
|
||||
open operator fun plus(a: A) = A()
|
||||
}
|
||||
|
||||
class B : A() {
|
||||
override fun plu<caret>s(a: A) = A()
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
class A {
|
||||
public fun <caret>plus(other: A): A = A()
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
class A {
|
||||
public operator fun plus(other: A): A = A()
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
class A {
|
||||
}
|
||||
|
||||
fun <caret>plus(other: A): A = A()
|
||||
Reference in New Issue
Block a user