Fixed tests after adding error checking for intention tests.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
// INTENTION_TEXT: Simplify negated '!in' expression to 'in'
|
||||
class A(val e: Int) {
|
||||
fun contains(i: Int): Boolean = e == i
|
||||
}
|
||||
|
||||
fun test(n: Int) {
|
||||
val arr = ArrayList<Int>(1)
|
||||
0 in arr
|
||||
}
|
||||
val a = A(1)
|
||||
0 in a
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user