Fix test: do not propose to change 'mod' to '%'
This commit is contained in:
Vendored
+3
-1
@@ -1,4 +1,6 @@
|
||||
// INTENTION_TEXT: Replace with '%' operator
|
||||
// INTENTION_TEXT: Replace call with binary operator
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun mod(a: Int): Test = Test()
|
||||
|
||||
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// INTENTION_TEXT: Replace with '%' operator
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun mod(a: Int): Test = Test()
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// INTENTION_TEXT: Replace with '%' operator
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun rem(a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.rem<caret>(1)
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// INTENTION_TEXT: Replace with '%' operator
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun rem(a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test % 1
|
||||
}
|
||||
Reference in New Issue
Block a user