Intention tests: add operator modifier in some tests
This commit is contained in:
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun unaryPlus(vararg a: Int): Test = Test()
|
||||
operator fun unaryPlus(vararg a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.unaryPl<caret>us()
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun unaryPlus(vararg a: Int): Test = Test()
|
||||
operator fun unaryPlus(vararg a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
+test
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun unaryPlus(a: Int=1): Test = Test()
|
||||
operator fun unaryPlus(a: Int=1): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.unaryPl<caret>us()
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun unaryPlus(a: Int=1): Test = Test()
|
||||
operator fun unaryPlus(a: Int=1): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
+test
|
||||
|
||||
idea/testData/intentions/conventionNameCalls/replaceCallWithUnaryOperator/functionLiteralArgument.kt
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
class Test {
|
||||
fun unaryPlus(fn: () -> Unit): Test = Test()
|
||||
operator fun unaryPlus(fn: () -> Unit): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.unaryPl<caret>us {}
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
class Test {
|
||||
fun unaryPlus(a: Int): Test = Test()
|
||||
operator fun unaryPlus(a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.unaryPl<caret>us(a=1)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// INTENTION_TEXT: Replace with '!' operator
|
||||
fun test() {
|
||||
class Test {
|
||||
fun not(): Test = Test()
|
||||
operator fun not(): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.n<caret>ot()
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// INTENTION_TEXT: Replace with '!' operator
|
||||
fun test() {
|
||||
class Test {
|
||||
fun not(): Test = Test()
|
||||
operator fun not(): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
!test
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
class Test {
|
||||
fun unaryPlus(vararg a: Int): Test = Test()
|
||||
operator fun unaryPlus(vararg a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.unaryPl<caret>us(0)
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
class Test {
|
||||
fun unaryPlus(a: Int): Test = Test()
|
||||
operator fun unaryPlus(a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.unaryPl<caret>us(1)
|
||||
|
||||
Reference in New Issue
Block a user