Intention tests: add operator modifier in some tests

This commit is contained in:
Natalia Ukhorskaya
2015-12-16 15:43:58 +03:00
parent 2c29f6f5ab
commit ce3d53d2ee
99 changed files with 99 additions and 99 deletions
@@ -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,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,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,7 +1,7 @@
fun test() {
class Test()
fun Test.invoke(): Unit = Unit
operator fun Test.invoke(): Unit = Unit
val test = Test()
test()
@@ -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,6 +1,6 @@
fun test() {
class Test {
fun invoke(fn: () -> Unit) {}
operator fun invoke(fn: () -> Unit) {}
}
val test = Test()
test {
@@ -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") { })
@@ -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,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,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,6 +1,6 @@
fun test() {
class Test {
fun invoke() {}
operator fun invoke() {}
}
val test = Test()
test.i<caret>nvoke()
@@ -1,6 +1,6 @@
fun test() {
class Test {
fun invoke() {}
operator fun invoke() {}
}
val test = Test()
test()
@@ -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,6 +1,6 @@
fun test() {
class Test {
fun <T> invoke(a: Int) {}
operator fun <T> invoke(a: Int) {}
}
val test = Test()
test<Int>(0)
@@ -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 }
@@ -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 }
@@ -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) {
@@ -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,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,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,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")