Dropped inspection for functions matching operator convention - only intention left

This commit is contained in:
Valentin Kipyatkov
2015-10-19 09:57:46 +03:00
parent ff60a13228
commit 0a5255ee4e
20 changed files with 62 additions and 97 deletions
@@ -1 +0,0 @@
org.jetbrains.kotlin.idea.intentions.AddOperatorModifierInspection
@@ -1,4 +0,0 @@
// "Add 'operator' modifier" "true"
class A {
fun <caret>contains(other: A): Boolean = true
}
@@ -1,4 +0,0 @@
// "Add 'operator' modifier" "true"
class A {
operator fun <caret>contains(other: A): Boolean = true
}
@@ -1,7 +0,0 @@
// "Add 'operator' modifier" "false"
// ACTION: Convert member to extension
// ACTION: Convert to block body
// ACTION: Remove explicit type specification
class A {
fun <caret>contains(other: A): Int = -1
}
@@ -1,5 +0,0 @@
// "Add 'operator' modifier" "true"
class A {
}
fun A.<caret>plus(other: A): A = A()
@@ -1,5 +0,0 @@
// "Add 'operator' modifier" "true"
class A {
}
operator fun A.<caret>plus(other: A): A = A()
@@ -1,10 +0,0 @@
// "Add 'operator' modifier" "true"
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,10 +0,0 @@
// "Add 'operator' modifier" "true"
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,10 +0,0 @@
// "Add 'operator' modifier" "false"
// ACTION: Convert to block body
// ACTION: Specify return type explicitly
open class A {
open operator fun plus(a: A) = A()
}
class B : A() {
override fun plu<caret>s(a: A) = A()
}
@@ -1,4 +0,0 @@
// "Add 'operator' modifier" "true"
class A {
public fun <caret>plus(other: A): A = A()
}
@@ -1,4 +0,0 @@
// "Add 'operator' modifier" "true"
class A {
public operator fun plus(other: A): A = A()
}
@@ -1,7 +0,0 @@
// "Add 'operator' modifier" "false"
// ACTION: Convert to block body
// ACTION: Remove explicit type specification
class A {
}
fun <caret>plus(other: A): A = A()