Intention tests: add operator modifier in some tests
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
fun test() {
|
||||
class Test(val v: Int)
|
||||
|
||||
fun Test.invoke(): Unit = Unit
|
||||
operator fun Test.invoke(): Unit = Unit
|
||||
|
||||
Test(1).i<caret>nvoke()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
fun test() {
|
||||
class Test(val v: Int)
|
||||
|
||||
fun Test.invoke(): Unit = Unit
|
||||
operator fun Test.invoke(): Unit = Unit
|
||||
|
||||
Test(1)<caret>()
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
fun test() {
|
||||
class Test()
|
||||
|
||||
fun Test.invoke(): Unit = Unit
|
||||
operator fun Test.invoke(): Unit = Unit
|
||||
|
||||
val test = Test()
|
||||
test.i<caret>nvoke()
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
fun test() {
|
||||
class Test()
|
||||
|
||||
fun Test.invoke(): Unit = Unit
|
||||
operator fun Test.invoke(): Unit = Unit
|
||||
|
||||
val test = Test()
|
||||
test()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(fn: () -> Unit) {}
|
||||
operator fun invoke(fn: () -> Unit) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(fn: () -> Unit) {}
|
||||
operator fun invoke(fn: () -> Unit) {}
|
||||
}
|
||||
val test = Test()
|
||||
test {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ fun <T> doSomething(a: T) {}
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, vararg b: String, fn: () -> Unit): String = "test"
|
||||
operator fun invoke(a: Int, vararg b: String, fn: () -> Unit): String = "test"
|
||||
}
|
||||
val test = Test()
|
||||
doSomething(test.i<caret>nvoke(1, "a", "b") { })
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ fun <T> doSomething(a: T) {}
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, vararg b: String, fn: () -> Unit): String = "test"
|
||||
operator fun invoke(a: Int, vararg b: String, fn: () -> Unit): String = "test"
|
||||
}
|
||||
val test = Test()
|
||||
doSomething(test(1, "a", "b") { })
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, b: String) {}
|
||||
operator fun invoke(a: Int, b: String) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke(b = "s", a = 1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, b: String) {}
|
||||
operator fun invoke(a: Int, b: String) {}
|
||||
}
|
||||
val test = Test()
|
||||
test(b = "s", a = 1)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke() {}
|
||||
operator fun invoke() {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke() {}
|
||||
operator fun invoke() {}
|
||||
}
|
||||
val test = Test()
|
||||
test()
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun <T> invoke(a: Int) {}
|
||||
operator fun <T> invoke(a: Int) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke<Int>(0)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun <T> invoke(a: Int) {}
|
||||
operator fun <T> invoke(a: Int) {}
|
||||
}
|
||||
val test = Test()
|
||||
test<Int>(0)
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun <T> invoke(fn: () -> T) {}
|
||||
operator fun <T> invoke(fn: () -> T) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke<Int> { 0 }
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun <T> invoke(fn: () -> T) {}
|
||||
operator fun <T> invoke(fn: () -> T) {}
|
||||
}
|
||||
val test = Test()
|
||||
test<Int> { 0 }
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, fn: () -> Unit) {}
|
||||
operator fun invoke(a: Int, fn: () -> Unit) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke(0) {
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, fn: () -> Unit) {}
|
||||
operator fun invoke(a: Int, fn: () -> Unit) {}
|
||||
}
|
||||
val test = Test()
|
||||
test(0) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, b: String) {}
|
||||
operator fun invoke(a: Int, b: String) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke(1, "s")
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, b: String) {}
|
||||
operator fun invoke(a: Int, b: String) {}
|
||||
}
|
||||
val test = Test()
|
||||
test(1, "s")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, vararg b: String) {}
|
||||
operator fun invoke(a: Int, vararg b: String) {}
|
||||
}
|
||||
val test = Test()
|
||||
test.i<caret>nvoke(1, "a", "b")
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
fun test() {
|
||||
class Test {
|
||||
fun invoke(a: Int, vararg b: String) {}
|
||||
operator fun invoke(a: Int, vararg b: String) {}
|
||||
}
|
||||
val test = Test()
|
||||
test(1, "a", "b")
|
||||
|
||||
Reference in New Issue
Block a user