Fix tests: "infix modifier required" and "operator modifier required" errors

This commit is contained in:
Yan Zhulanow
2015-11-26 15:56:56 +03:00
parent a3ff3ffc45
commit 9d1af5a17e
635 changed files with 1283 additions and 1617 deletions
@@ -1,6 +1,6 @@
// INTENTION_TEXT: Simplify negated 'in' expression to '!in'
class A(val e: Int) {
fun contains(i: Int): Boolean = e == i
operator fun contains(i: Int): Boolean = e == i
}
fun test(n: Int) {
@@ -1,6 +1,6 @@
// INTENTION_TEXT: Simplify negated 'in' expression to '!in'
class A(val e: Int) {
fun contains(i: Int): Boolean = e == i
operator fun contains(i: Int): Boolean = e == i
}
fun test(n: Int) {
@@ -1,5 +1,5 @@
// IS_APPLICABLE: false
fun Int.lt(b: Int): Boolean = this < b
infix fun Int.lt(b: Int): Boolean = this < b
fun test(n: Int) {
<caret>!(1 lt 2)
}
@@ -1,6 +1,6 @@
// INTENTION_TEXT: Simplify negated '!in' expression to 'in'
class A(val e: Int) {
fun contains(i: Int): Boolean = e == i
operator fun contains(i: Int): Boolean = e == i
}
fun test(n: Int) {
@@ -1,6 +1,6 @@
// INTENTION_TEXT: Simplify negated '!in' expression to 'in'
class A(val e: Int) {
fun contains(i: Int): Boolean = e == i
operator fun contains(i: Int): Boolean = e == i
}
fun test(n: Int) {